PHP Class PhpBench\Tests\System\RunTest

Inheritance: extends SystemTestCase
Afficher le fichier Open project: dantleech/phpbench

Méthodes publiques

Méthode Description
provideOutputs ( )
provideProgressLoggers ( )
testCommand ( ) It should run when given a path.
testCommandWithNoPath ( ) It should show an error if no path is given (and no path is configured).
testCommandWithReport ( ) It should run and generate a named report.
testCommandWithReportConfiguration ( ) It should run and generate a report configuration.
testCommandWithReportConfigurationInvalid ( ) It should fail if an invalid report configuration is given.
testCommandWithReportConfigurationUnknown ( ) It should fail if an unknown report name is given.
testConfigBootstrapRelativity ( ) It should load the configured bootstrap relative to the config file.
testDumpXml ( ) It should dump none to an XML file.
testDumpXmlStdOut ( ) It should dump to stdout.
testGroups ( ) It should run specified groups.
testIterationErrorExitCode ( ) It should exit with code "1" if an exception is encountered while running the iterations.
testIterationStopOnError ( ) It should stop on the first exception if an exceptio is encountered.
testOutputs ( $output ) It should generate in different output formats.
testOverrideBootstrap ( ) It should override the bootstrap file.
testOverrideIterations ( ) Its should allow the number of iterations to be specified.
testOverrideMode ( ) Its should allow the mode to be specified.
testOverrideParameters ( ) It should accept explicit parameters.
testOverrideParametersInvalidJson ( ) It should throw an exception if an invalid JSON string is provided for parameters.
testOverrideRevolutions ( ) It should override revolutions.
testOverrideTimeUnit ( ) Its should allow the time unit to be specified.
testPhpBenchConfig ( ) It should use phpbench.json if present It should prioritize phpbench.json over .phpbench.dist.json.
testPhpBenchDistConfig ( ) It should use phpbench.json.dist if present.
testPhpEnvOptions ( ) It should set the PHP binary, wrapper and config.
testPrecision ( ) It should allow the precision to be set.
testProgressLogger ( $progress ) It can have the progress logger specified.
testRetryThreshold ( ) It should set the retry threshold.
testSetBootstrap ( ) It should set the bootstrap file.
testSetBootstrapShort ( ) It should set the bootstrap using the short option.
testSetConflictBootstrap ( ) It should set the bootstrap file which contains variables that conflict with the script templates.
testSleep ( ) It should set the sleep option.
testSpecifiedConfig ( ) It should use a speified, valid, configuration.
testStore ( ) It should request that the suite result to be stored.
testZeroTimedIterations ( ) It should not crash when zeros are reported as times.

Method Details

provideOutputs() public méthode

public provideOutputs ( )

provideProgressLoggers() public méthode

testCommand() public méthode

It should show the default (simple) report.
public testCommand ( )

testCommandWithNoPath() public méthode

It should show an error if no path is given (and no path is configured).

testCommandWithReport() public méthode

It should run and generate a named report.

testCommandWithReportConfiguration() public méthode

It should run and generate a report configuration.

testCommandWithReportConfigurationInvalid() public méthode

It should fail if an invalid report configuration is given.

testCommandWithReportConfigurationUnknown() public méthode

It should fail if an unknown report name is given.

testConfigBootstrapRelativity() public méthode

It should load the configured bootstrap relative to the config file.

testDumpXml() public méthode

It should dump none to an XML file.
public testDumpXml ( )

testDumpXmlStdOut() public méthode

It should dump to stdout.
public testDumpXmlStdOut ( )

testGroups() public méthode

It should run specified groups.
public testGroups ( )

testIterationErrorExitCode() public méthode

It should exit with code "1" if an exception is encountered while running the iterations.

testIterationStopOnError() public méthode

It should stop on the first exception if an exceptio is encountered.

testOutputs() public méthode

It should generate in different output formats.
public testOutputs ( $output )

testOverrideBootstrap() public méthode

It should override the bootstrap file.

testOverrideIterations() public méthode

Its should allow the number of iterations to be specified.

testOverrideMode() public méthode

Its should allow the mode to be specified.
public testOverrideMode ( )

testOverrideParameters() public méthode

It should accept explicit parameters.

testOverrideParametersInvalidJson() public méthode

It should throw an exception if an invalid JSON string is provided for parameters.

testOverrideRevolutions() public méthode

It should override revolutions.

testOverrideTimeUnit() public méthode

Its should allow the time unit to be specified.

testPhpBenchConfig() public méthode

It should use phpbench.json if present It should prioritize phpbench.json over .phpbench.dist.json.
public testPhpBenchConfig ( )

testPhpBenchDistConfig() public méthode

It should use phpbench.json.dist if present.

testPhpEnvOptions() public méthode

It should set the PHP binary, wrapper and config.
public testPhpEnvOptions ( )

testPrecision() public méthode

It should allow the precision to be set.
public testPrecision ( )

testProgressLogger() public méthode

TODO: Make this a separate test and assert the output.
public testProgressLogger ( $progress )

testRetryThreshold() public méthode

It should set the retry threshold.
public testRetryThreshold ( )

testSetBootstrap() public méthode

It should set the bootstrap file.
public testSetBootstrap ( )

testSetBootstrapShort() public méthode

It should set the bootstrap using the short option.

testSetConflictBootstrap() public méthode

It should set the bootstrap file which contains variables that conflict with the script templates.

testSleep() public méthode

It should set the sleep option.
public testSleep ( )

testSpecifiedConfig() public méthode

It should use a speified, valid, configuration.
public testSpecifiedConfig ( )

testStore() public méthode

It should request that the suite result to be stored.
public testStore ( )

testZeroTimedIterations() public méthode

It should not crash when zeros are reported as times.