PHP Class mageekguy\atoum\test

Inheritance: implements mageekguy\atoum\observable, implements countable
Datei anzeigen Open project: atoum/atoum Class Usage Examples

Public Methods

Method Description
__call ( $method, array $arguments )
__construct ( mageekguy\atoum\adapter $adapter = null, annotations\extractor $annotationExtractor = null, asserter\generator $asserterGenerator = null, test\assertion\manager $assertionManager = null, closure $reflectionClassFactory = null, closure $phpExtensionFactory = null, mageekguy\atoum\tools\variable\analyzer $analyzer = null )
__get ( $property )
__set ( $property, $handler )
__toString ( )
addClassPhpVersion ( $version, $operator = null )
addExtension ( mageekguy\atoum\extension $extension, mageekguy\atoum\extension\configuration $configuration = null )
addExtensions ( splObjectStorage $extensions )
addMandatoryClassExtension ( $extension )
addMandatoryMethodExtension ( $testMethodName, $extension )
addMethodPhpVersion ( $testMethodName, $version, $operator = null )
addObserver ( mageekguy\atoum\observer $observer )
afterTestMethod ( $testMethod )
beforeTestMethod ( $testMethod )
branchesAndPathsCoverageIsEnabled ( )
callObservers ( $event )
classHasNotVoidMethods ( )
classHasVoidMethods ( )
codeCoverageIsEnabled ( )
count ( )
debugModeIsEnabled ( )
disableBranchesAndPathsCoverage ( )
disableCodeCoverage ( )
disableDebugMode ( )
enableBranchesAndPathsCoverage ( )
enableCodeCoverage ( )
enableDebugMode ( )
errorHandler ( $errno, $errstr, $errfile, $errline )
executeOnFailure ( closure $closure )
getAdapter ( )
getAllTags ( )
getAnalyzer ( )
getAsserterCallManager ( )
getAsserterGenerator ( )
getAssertionManager ( )
getAutoloaderFile ( )
getBootstrapFile ( )
getClass ( )
getClassEngine ( )
getClassNamespace ( )
getClassPhpVersions ( )
getCoverage ( )
getCurrentMethod ( )
getDataProviders ( )
getDefaultEngine ( )
getExtensionConfiguration ( mageekguy\atoum\extension $extension )
getExtensions ( )
getFactoryBuilder ( )
getLocale ( )
getMandatoryClassExtensions ( )
getMandatoryMethodExtensions ( $testMethodName = null )
getMaxChildrenNumber ( )
getMethodEngine ( $method )
getMethodPhpVersions ( $testMethodName = null )
getMethodPrefix ( )
getMethodTags ( $testMethodName = null )
getMockAutoloader ( )
getMockControllerLinker ( )
getMockGenerator ( )
getNamespace ( )
getObservers ( )
getPath ( )
getPhpConstantMocker ( )
getPhpFunctionMocker ( )
getPhpPath ( )
getScore ( )
getTaggedTestMethods ( array $methods, array $tags = [] )
getTags ( )
getTestAdapterStorage ( )
getTestMethodPrefix ( )
getTestMethods ( array $tags = [] )
getTestNamespace ( )
getTestedClassName ( )
getTestedClassNameFromTestClass ( $fullyQualifiedClassName, $testNamespace = null, mageekguy\atoum\tools\variable\analyzer $analyzer = null )
getTestedClassNamespace ( )
getTestedClassPath ( )
getXdebugConfig ( )
ignore ( $boolean )
ignoreMethod ( $methodName, $boolean )
isIgnored ( array $namespaces = [], array $tags = [] )
methodIsIgnored ( $methodName, array $tags = [] )
methodIsNotVoid ( $method )
removeExtension ( mageekguy\atoum\extension $extension )
removeExtensions ( )
removeObserver ( mageekguy\atoum\observer $observer )
run ( array $runTestMethods = [], array $tags = [] )
runTestMethod ( $testMethod, array $tags = [] )
runTestMethods ( array $methods, array $tags = [] )
setAdapter ( mageekguy\atoum\adapter $adapter = null )
setAnalyzer ( mageekguy\atoum\tools\variable\analyzer $analyzer = null )
setAsserterCallManager ( mageekguy\atoum\asserters\adapter\call\manager $asserterCallManager = null )
setAsserterGenerator ( test\asserter\generator $generator = null )
setAssertionManager ( test\assertion\manager $assertionManager = null )
setAutoloaderFile ( $path )
setBootstrapFile ( $path )
setClassEngine ( $engine )
setDataProvider ( $testMethodName, $dataProvider = null )
setDefaultEngine ( $defaultEngine )
setFactoryBuilder ( mageekguy\atoum\factory\builder $factoryBuilder = null )
setLocale ( mageekguy\atoum\locale $locale = null )
setMaxChildrenNumber ( $number )
setMethodEngine ( $method, $engine )
setMethodNotVoid ( $method )
setMethodPrefix ( $methodPrefix )
setMethodTags ( $testMethodName, array $tags )
setMethodVoid ( $method )
setMockAutoloader ( mageekguy\atoum\autoloader\mock $autoloader = null )
setMockControllerLinker ( mock\controller\linker $linker = null )
setMockGenerator ( test\mock\generator $generator = null )
setNamespace ( $namespace )
setPhpConstantMocker ( mageekguy\atoum\php\mocker\constant $phpConstantMocker = null )
setPhpExtensionFactory ( closure $factory = null )
setPhpFunctionMocker ( mageekguy\atoum\php\mocker\funktion $phpFunctionMocker = null )
setPhpMocker ( mocker $phpMocker = null )
setPhpPath ( $path )
setReflectionMethodFactory ( closure $factory = null )
setScore ( test\score $score = null )
setTags ( array $tags )
setTestAdapterStorage ( test\adapter\storage $storage = null )
setTestMethodPrefix ( $methodPrefix )
setTestNamespace ( $testNamespace )
setTestedClassName ( $className )
setUp ( )
setXdebugConfig ( $value )
skip ( $message )
startCase ( $case )
stopCase ( )
tearDown ( )

Protected Methods

Method Description
getBacktrace ( array $trace = null )
setClassAnnotations ( annotations\extractor $extractor )
setMethodAnnotations ( annotations\extractor $extractor, &$methodName )

Private Methods

Method Description
addExceptionToScore ( exception $exception )
canRunEngine ( test\engine $engine )
checkMethod ( $methodName )
cleanNamespace ( $namespace )
doTearDown ( )
runEngine ( )
runEngines ( )
stopEngines ( )

Method Details

__call() public method

public __call ( $method, array $arguments )
$arguments array

__construct() public method

public __construct ( mageekguy\atoum\adapter $adapter = null, annotations\extractor $annotationExtractor = null, asserter\generator $asserterGenerator = null, test\assertion\manager $assertionManager = null, closure $reflectionClassFactory = null, closure $phpExtensionFactory = null, mageekguy\atoum\tools\variable\analyzer $analyzer = null )
$adapter mageekguy\atoum\adapter
$annotationExtractor annotations\extractor
$asserterGenerator asserter\generator
$assertionManager test\assertion\manager
$reflectionClassFactory closure
$phpExtensionFactory closure
$analyzer mageekguy\atoum\tools\variable\analyzer

__get() public method

public __get ( $property )

__set() public method

public __set ( $property, $handler )

__toString() public method

public __toString ( )

addClassPhpVersion() public method

public addClassPhpVersion ( $version, $operator = null )

addExtension() public method

public addExtension ( mageekguy\atoum\extension $extension, mageekguy\atoum\extension\configuration $configuration = null )
$extension mageekguy\atoum\extension
$configuration mageekguy\atoum\extension\configuration

addExtensions() public method

public addExtensions ( splObjectStorage $extensions )
$extensions splObjectStorage

addMandatoryClassExtension() public method

public addMandatoryClassExtension ( $extension )

addMandatoryMethodExtension() public method

public addMandatoryMethodExtension ( $testMethodName, $extension )

addMethodPhpVersion() public method

public addMethodPhpVersion ( $testMethodName, $version, $operator = null )

addObserver() public method

public addObserver ( mageekguy\atoum\observer $observer )
$observer mageekguy\atoum\observer

afterTestMethod() public method

public afterTestMethod ( $testMethod )

beforeTestMethod() public method

public beforeTestMethod ( $testMethod )

branchesAndPathsCoverageIsEnabled() public method

callObservers() public method

public callObservers ( $event )

classHasNotVoidMethods() public method

classHasVoidMethods() public method

public classHasVoidMethods ( )

codeCoverageIsEnabled() public method

count() public method

public count ( )

debugModeIsEnabled() public method

public debugModeIsEnabled ( )

disableBranchesAndPathsCoverage() public method

disableCodeCoverage() public method

public disableCodeCoverage ( )

disableDebugMode() public method

public disableDebugMode ( )

enableBranchesAndPathsCoverage() public method

enableCodeCoverage() public method

public enableCodeCoverage ( )

enableDebugMode() public method

public enableDebugMode ( )

errorHandler() public method

public errorHandler ( $errno, $errstr, $errfile, $errline )

executeOnFailure() public method

public executeOnFailure ( closure $closure )
$closure closure

getAdapter() public method

public getAdapter ( )

getAllTags() public method

public getAllTags ( )

getAnalyzer() public method

public getAnalyzer ( )

getAsserterCallManager() public method

getAsserterGenerator() public method

getAssertionManager() public method

public getAssertionManager ( )

getAutoloaderFile() public method

public getAutoloaderFile ( )

getBacktrace() protected method

protected getBacktrace ( array $trace = null )
$trace array

getBootstrapFile() public method

public getBootstrapFile ( )

getClass() public method

public getClass ( )

getClassEngine() public method

public getClassEngine ( )

getClassNamespace() public method

public getClassNamespace ( )

getClassPhpVersions() public method

public getClassPhpVersions ( )

getCoverage() public method

public getCoverage ( )

getCurrentMethod() public method

public getCurrentMethod ( )

getDataProviders() public method

public getDataProviders ( )

getDefaultEngine() public static method

public static getDefaultEngine ( )

getExtensionConfiguration() public method

public getExtensionConfiguration ( mageekguy\atoum\extension $extension )
$extension mageekguy\atoum\extension

getExtensions() public method

public getExtensions ( )

getFactoryBuilder() public method

public getFactoryBuilder ( )

getLocale() public method

public getLocale ( )

getMandatoryClassExtensions() public method

getMandatoryMethodExtensions() public method

public getMandatoryMethodExtensions ( $testMethodName = null )

getMaxChildrenNumber() public method

getMethodEngine() public method

public getMethodEngine ( $method )

getMethodPhpVersions() public method

public getMethodPhpVersions ( $testMethodName = null )

getMethodPrefix() public static method

public static getMethodPrefix ( )

getMethodTags() public method

public getMethodTags ( $testMethodName = null )

getMockAutoloader() public method

public getMockAutoloader ( )

getMockControllerLinker() public method

getMockGenerator() public method

public getMockGenerator ( )

getNamespace() public static method

public static getNamespace ( )

getObservers() public method

public getObservers ( )

getPath() public method

public getPath ( )

getPhpConstantMocker() public method

getPhpFunctionMocker() public method

getPhpPath() public method

public getPhpPath ( )

getScore() public method

public getScore ( )

getTaggedTestMethods() public method

public getTaggedTestMethods ( array $methods, array $tags = [] )
$methods array
$tags array

getTags() public method

public getTags ( )

getTestAdapterStorage() public method

getTestMethodPrefix() public method

public getTestMethodPrefix ( )

getTestMethods() public method

public getTestMethods ( array $tags = [] )
$tags array

getTestNamespace() public method

public getTestNamespace ( )

getTestedClassName() public method

public getTestedClassName ( )

getTestedClassNameFromTestClass() public static method

public static getTestedClassNameFromTestClass ( $fullyQualifiedClassName, $testNamespace = null, mageekguy\atoum\tools\variable\analyzer $analyzer = null )
$analyzer mageekguy\atoum\tools\variable\analyzer

getTestedClassNamespace() public method

getTestedClassPath() public method

public getTestedClassPath ( )

getXdebugConfig() public method

public getXdebugConfig ( )

ignore() public method

public ignore ( $boolean )

ignoreMethod() public method

public ignoreMethod ( $methodName, $boolean )

isIgnored() public method

public isIgnored ( array $namespaces = [], array $tags = [] )
$namespaces array
$tags array

methodIsIgnored() public method

public methodIsIgnored ( $methodName, array $tags = [] )
$tags array

methodIsNotVoid() public method

public methodIsNotVoid ( $method )

removeExtension() public method

public removeExtension ( mageekguy\atoum\extension $extension )
$extension mageekguy\atoum\extension

removeExtensions() public method

public removeExtensions ( )

removeObserver() public method

public removeObserver ( mageekguy\atoum\observer $observer )
$observer mageekguy\atoum\observer

run() public method

public run ( array $runTestMethods = [], array $tags = [] )
$runTestMethods array
$tags array

runTestMethod() public method

public runTestMethod ( $testMethod, array $tags = [] )
$tags array

runTestMethods() public method

public runTestMethods ( array $methods, array $tags = [] )
$methods array
$tags array

setAdapter() public method

public setAdapter ( mageekguy\atoum\adapter $adapter = null )
$adapter mageekguy\atoum\adapter

setAnalyzer() public method

public setAnalyzer ( mageekguy\atoum\tools\variable\analyzer $analyzer = null )
$analyzer mageekguy\atoum\tools\variable\analyzer

setAsserterCallManager() public method

public setAsserterCallManager ( mageekguy\atoum\asserters\adapter\call\manager $asserterCallManager = null )
$asserterCallManager mageekguy\atoum\asserters\adapter\call\manager

setAsserterGenerator() public method

public setAsserterGenerator ( test\asserter\generator $generator = null )
$generator test\asserter\generator

setAssertionManager() public method

public setAssertionManager ( test\assertion\manager $assertionManager = null )
$assertionManager test\assertion\manager

setAutoloaderFile() public method

public setAutoloaderFile ( $path )

setBootstrapFile() public method

public setBootstrapFile ( $path )

setClassAnnotations() protected method

protected setClassAnnotations ( annotations\extractor $extractor )
$extractor annotations\extractor

setClassEngine() public method

public setClassEngine ( $engine )

setDataProvider() public method

public setDataProvider ( $testMethodName, $dataProvider = null )

setDefaultEngine() public static method

public static setDefaultEngine ( $defaultEngine )

setFactoryBuilder() public method

public setFactoryBuilder ( mageekguy\atoum\factory\builder $factoryBuilder = null )
$factoryBuilder mageekguy\atoum\factory\builder

setLocale() public method

public setLocale ( mageekguy\atoum\locale $locale = null )
$locale mageekguy\atoum\locale

setMaxChildrenNumber() public method

public setMaxChildrenNumber ( $number )

setMethodAnnotations() protected method

protected setMethodAnnotations ( annotations\extractor $extractor, &$methodName )
$extractor annotations\extractor

setMethodEngine() public method

public setMethodEngine ( $method, $engine )

setMethodNotVoid() public method

public setMethodNotVoid ( $method )

setMethodPrefix() public static method

public static setMethodPrefix ( $methodPrefix )

setMethodTags() public method

public setMethodTags ( $testMethodName, array $tags )
$tags array

setMethodVoid() public method

public setMethodVoid ( $method )

setMockAutoloader() public method

public setMockAutoloader ( mageekguy\atoum\autoloader\mock $autoloader = null )
$autoloader mageekguy\atoum\autoloader\mock

setMockControllerLinker() public method

public setMockControllerLinker ( mock\controller\linker $linker = null )
$linker mock\controller\linker

setMockGenerator() public method

public setMockGenerator ( test\mock\generator $generator = null )
$generator test\mock\generator

setNamespace() public static method

public static setNamespace ( $namespace )

setPhpConstantMocker() public method

public setPhpConstantMocker ( mageekguy\atoum\php\mocker\constant $phpConstantMocker = null )
$phpConstantMocker mageekguy\atoum\php\mocker\constant

setPhpExtensionFactory() public method

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

setPhpFunctionMocker() public method

public setPhpFunctionMocker ( mageekguy\atoum\php\mocker\funktion $phpFunctionMocker = null )
$phpFunctionMocker mageekguy\atoum\php\mocker\funktion

setPhpMocker() public method

public setPhpMocker ( mocker $phpMocker = null )
$phpMocker mageekguy\atoum\php\mocker

setPhpPath() public method

public setPhpPath ( $path )

setReflectionMethodFactory() public method

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

setScore() public method

public setScore ( test\score $score = null )
$score test\score

setTags() public method

public setTags ( array $tags )
$tags array

setTestAdapterStorage() public method

public setTestAdapterStorage ( test\adapter\storage $storage = null )
$storage test\adapter\storage

setTestMethodPrefix() public method

public setTestMethodPrefix ( $methodPrefix )

setTestNamespace() public method

public setTestNamespace ( $testNamespace )

setTestedClassName() public method

public setTestedClassName ( $className )

setUp() public method

public setUp ( )

setXdebugConfig() public method

public setXdebugConfig ( $value )

skip() public method

public skip ( $message )

startCase() public method

public startCase ( $case )

stopCase() public method

public stopCase ( )

tearDown() public method

public tearDown ( )