PHP 클래스 PhpBench\Tests\System\RunTest

상속: extends SystemTestCase
파일 보기 프로젝트 열기: dantleech/phpbench

공개 메소드들

메소드 설명
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.

메소드 상세

provideOutputs() 공개 메소드

public provideOutputs ( )

provideProgressLoggers() 공개 메소드

testCommand() 공개 메소드

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

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.
public testDumpXml ( )

testDumpXmlStdOut() 공개 메소드

It should dump to stdout.
public testDumpXmlStdOut ( )

testGroups() 공개 메소드

It should run specified groups.
public testGroups ( )

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() 공개 메소드

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

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.
public testOverrideMode ( )

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.
public testPhpBenchConfig ( )

testPhpBenchDistConfig() 공개 메소드

It should use phpbench.json.dist if present.

testPhpEnvOptions() 공개 메소드

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

testPrecision() 공개 메소드

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

testProgressLogger() 공개 메소드

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

testRetryThreshold() 공개 메소드

It should set the retry threshold.
public testRetryThreshold ( )

testSetBootstrap() 공개 메소드

It should set the bootstrap file.
public testSetBootstrap ( )

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.
public testSleep ( )

testSpecifiedConfig() 공개 메소드

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

testStore() 공개 메소드

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

testZeroTimedIterations() 공개 메소드

It should not crash when zeros are reported as times.