PHP Class mageekguy\atoum\scripts\runner

Inheritance: extends mageekguy\atoum\script\configurable
Mostra file Open project: atoum/atoum Class Usage Examples

Protected Properties

Property Type Description
$arguments
$autorunner
$configurationCallables
$configuratorFactory
$defaultArguments
$defaultReportFactory
$loop
$looper
$methods
$namespaces
$runner
$runnerFile
$scoreFile
$tags

Public Methods

Method Description
__construct ( $name, mageekguy\atoum\adapter $adapter = null, mageekguy\atoum\scripts\runner\looper $looper = null )
acceptTestFileExtensions ( array $testFileExtensions )
addConfigurationCallable ( callable $callable )
addDefaultArguments ( $argument )
addDefaultReport ( )
addReport ( mageekguy\atoum\report $report )
addTest ( $testPath )
addTestAllDirectory ( $directory )
addTests ( array $testPaths )
addTestsFromDirectories ( array $directories )
addTestsFromDirectory ( $directory )
addTestsFromPattern ( $pattern )
addTestsFromPatterns ( array $patterns )
autorun ( )
autorunMustBeEnabled ( )
disableAutorun ( )
disableCodeCoverage ( )
disableLoopMode ( )
doNotfailIfSkippedMethods ( )
doNotfailIfVoidMethods ( )
enableAutorun ( $name )
enableBranchesAndPathsCoverage ( )
enableDebugMode ( )
enableLoopMode ( )
excludeClassesFromCoverage ( array $classes )
excludeDirectoriesFromCoverage ( array $directories )
excludeMethodsFromCoverage ( array $methods )
excludeNamespacesFromCoverage ( array $namespaces )
failIfSkippedMethods ( )
failIfVoidMethods ( )
getArguments ( )
getConfiguratorFactory ( )
getDefaultArguments ( )
getDefaultReportFactory ( )
getLooper ( )
getReports ( )
getResourcesDirectory ( )
getRunner ( )
getScoreFile ( )
getTestedNamespaces ( )
hasDefaultArguments ( )
init ( $directory = null )
run ( array $arguments = [] )
setArguments ( array $arguments )
setAutoloaderFile ( $autoloaderFile )
setBootstrapFile ( $bootstrapFile )
setConfiguratorFactory ( closure $factory = null )
setDefaultAutoloaderFiles ( $startDirectory = null )
setDefaultBootstrapFiles ( $startDirectory = null )
setDefaultReportFactory ( closure $factory = null )
setDefaultReportTitle ( $reportTitle )
setErrorWriter ( mageekguy\atoum\writer $writer = null )
setInfoWriter ( mageekguy\atoum\writer $writer = null )
setLooper ( mageekguy\atoum\scripts\runner\looper $looper = null )
setMaxChildrenNumber ( $childrenNumber )
setPhpPath ( $phpPath )
setReport ( mageekguy\atoum\report $report )
setRunner ( runner $runner = null )
setScoreFile ( $path )
setWarningWriter ( mageekguy\atoum\writer $writer = null )
setXdebugConfig ( $xdebugConfig )
shouldFailIfSkippedMethods ( )
shouldFailIfVoidMethods ( )
testIt ( )
testMethod ( $class, $method )
testNamespaces ( array $namespaces )
testTags ( array $tags )
useConfigFile ( $path )
useConfigurationCallable ( closure $callback )
version ( )

Protected Methods

Method Description
doRun ( )
loop ( )
parseArguments ( array $arguments )
saveScore ( score $score )
setArgumentHandlers ( )
writeHelpUsage ( )

Private Methods

Method Description
copy ( $from, $to )
getClassesOf ( $methods )
getFailMethods ( score $score )
mergeMethods ( array $methods, array $newMethods )

Method Details

__construct() public method

public __construct ( $name, mageekguy\atoum\adapter $adapter = null, mageekguy\atoum\scripts\runner\looper $looper = null )
$adapter mageekguy\atoum\adapter
$looper mageekguy\atoum\scripts\runner\looper

acceptTestFileExtensions() public method

public acceptTestFileExtensions ( array $testFileExtensions )
$testFileExtensions array

addConfigurationCallable() public static method

public static addConfigurationCallable ( callable $callable )
$callable callable

addDefaultArguments() public method

public addDefaultArguments ( $argument )

addDefaultReport() public method

public addDefaultReport ( )

addReport() public method

public addReport ( mageekguy\atoum\report $report )
$report mageekguy\atoum\report

addTest() public method

public addTest ( $testPath )

addTestAllDirectory() public method

public addTestAllDirectory ( $directory )

addTests() public method

public addTests ( array $testPaths )
$testPaths array

addTestsFromDirectories() public method

public addTestsFromDirectories ( array $directories )
$directories array

addTestsFromDirectory() public method

public addTestsFromDirectory ( $directory )

addTestsFromPattern() public method

public addTestsFromPattern ( $pattern )

addTestsFromPatterns() public method

public addTestsFromPatterns ( array $patterns )
$patterns array

autorun() public method

public autorun ( )

autorunMustBeEnabled() public static method

public static autorunMustBeEnabled ( )

disableAutorun() public static method

public static disableAutorun ( )

disableCodeCoverage() public method

public disableCodeCoverage ( )

disableLoopMode() public method

public disableLoopMode ( )

doNotfailIfSkippedMethods() public method

doNotfailIfVoidMethods() public method

doRun() protected method

protected doRun ( )

enableAutorun() public static method

public static enableAutorun ( $name )

enableBranchesAndPathsCoverage() public method

enableDebugMode() public method

public enableDebugMode ( )

enableLoopMode() public method

public enableLoopMode ( )

excludeClassesFromCoverage() public method

public excludeClassesFromCoverage ( array $classes )
$classes array

excludeDirectoriesFromCoverage() public method

public excludeDirectoriesFromCoverage ( array $directories )
$directories array

excludeMethodsFromCoverage() public method

public excludeMethodsFromCoverage ( array $methods )
$methods array

excludeNamespacesFromCoverage() public method

public excludeNamespacesFromCoverage ( array $namespaces )
$namespaces array

failIfSkippedMethods() public method

failIfVoidMethods() public method

public failIfVoidMethods ( )

getArguments() public method

public getArguments ( )

getConfiguratorFactory() public method

getDefaultArguments() public method

public getDefaultArguments ( )

getDefaultReportFactory() public method

getLooper() public method

public getLooper ( )

getReports() public method

public getReports ( )

getResourcesDirectory() public method

getRunner() public method

public getRunner ( )

getScoreFile() public method

public getScoreFile ( )

getTestedNamespaces() public method

public getTestedNamespaces ( )

hasDefaultArguments() public method

public hasDefaultArguments ( )

init() public method

public init ( $directory = null )

loop() protected method

protected loop ( )

parseArguments() protected method

protected parseArguments ( array $arguments )
$arguments array

run() public method

public run ( array $arguments = [] )
$arguments array

saveScore() protected method

protected saveScore ( score $score )
$score mageekguy\atoum\score

setArgumentHandlers() protected method

protected setArgumentHandlers ( )

setArguments() public method

public setArguments ( array $arguments )
$arguments array

setAutoloaderFile() public method

public setAutoloaderFile ( $autoloaderFile )

setBootstrapFile() public method

public setBootstrapFile ( $bootstrapFile )

setConfiguratorFactory() public method

public setConfiguratorFactory ( closure $factory = null )
$factory closure

setDefaultAutoloaderFiles() public method

public setDefaultAutoloaderFiles ( $startDirectory = null )

setDefaultBootstrapFiles() public method

public setDefaultBootstrapFiles ( $startDirectory = null )

setDefaultReportFactory() public method

public setDefaultReportFactory ( closure $factory = null )
$factory closure

setDefaultReportTitle() public method

public setDefaultReportTitle ( $reportTitle )

setErrorWriter() public method

public setErrorWriter ( mageekguy\atoum\writer $writer = null )
$writer mageekguy\atoum\writer

setInfoWriter() public method

public setInfoWriter ( mageekguy\atoum\writer $writer = null )
$writer mageekguy\atoum\writer

setLooper() public method

public setLooper ( mageekguy\atoum\scripts\runner\looper $looper = null )
$looper mageekguy\atoum\scripts\runner\looper

setMaxChildrenNumber() public method

public setMaxChildrenNumber ( $childrenNumber )

setPhpPath() public method

public setPhpPath ( $phpPath )

setReport() public method

public setReport ( mageekguy\atoum\report $report )
$report mageekguy\atoum\report

setRunner() public method

public setRunner ( runner $runner = null )
$runner mageekguy\atoum\runner

setScoreFile() public method

public setScoreFile ( $path )

setWarningWriter() public method

public setWarningWriter ( mageekguy\atoum\writer $writer = null )
$writer mageekguy\atoum\writer

setXdebugConfig() public method

public setXdebugConfig ( $xdebugConfig )

shouldFailIfSkippedMethods() public method

shouldFailIfVoidMethods() public method

testIt() public method

public testIt ( )

testMethod() public method

public testMethod ( $class, $method )

testNamespaces() public method

public testNamespaces ( array $namespaces )
$namespaces array

testTags() public method

public testTags ( array $tags )
$tags array

useConfigFile() public method

public useConfigFile ( $path )

useConfigurationCallable() public method

public useConfigurationCallable ( closure $callback )
$callback closure

version() public method

public version ( )

writeHelpUsage() protected method

protected writeHelpUsage ( )

Property Details

$arguments protected_oe property

protected $arguments

$autorunner protected_oe static_oe property

protected static $autorunner

$configurationCallables protected_oe static_oe property

protected static $configurationCallables

$configuratorFactory protected_oe property

protected $configuratorFactory

$defaultArguments protected_oe property

protected $defaultArguments

$defaultReportFactory protected_oe property

protected $defaultReportFactory

$loop protected_oe property

protected $loop

$looper protected_oe property

protected $looper

$methods protected_oe property

protected $methods

$namespaces protected_oe property

protected $namespaces

$runner protected_oe property

protected $runner

$runnerFile protected_oe static_oe property

protected static $runnerFile

$scoreFile protected_oe property

protected $scoreFile

$tags protected_oe property

protected $tags