PHP Класс PhpBench\Tests\System\RunTest

Наследование: extends SystemTestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.