PHP Class mageekguy\atoum\mock\generator

Afficher le fichier Open project: atoum/atoum Class Usage Examples

Protected Properties

Свойство Type Description
$adapter
$allIsInterface
$allowUndefinedMethodsUsage
$orphanizedMethods
$overloadedMethods
$reflectionClassFactory
$shuntParentClassCalls
$shuntedMethods
$testedClass

Méthodes publiques

Méthode Description
__construct ( )
allIsInterface ( )
allowUndefinedMethodInInterface ( )
allowUndefinedMethodUsage ( )
callsToParentClassAreShunted ( )
disallowUndefinedMethodInInterface ( )
disallowUndefinedMethodUsage ( )
generate ( $class, $mockNamespace = null, $mockClass = null )
getAdapter ( )
getDefaultNamespace ( )
getMockedClassCode ( $class, $mockNamespace = null, $mockClass = null )
getOverload ( $method )
getReflectionClassFactory ( )
isOrphanized ( $method )
isOverloaded ( $method )
isShunted ( $method )
methodIsMockable ( reflectionMethod $method )
orphanize ( $method )
overload ( method $method )
setAdapter ( mageekguy\atoum\adapter $adapter = null )
setDefaultNamespace ( $namespace )
setReflectionClassFactory ( closure $factory = null )
shunt ( $method )
shuntParentClassCalls ( )
testedClassIs ( $testedClass )
undefinedMethodInInterfaceAreAllowed ( )
undefinedMethodUsageIsAllowed ( )
unshuntParentClassCalls ( )

Méthodes protégées

Méthode Description
generateClassCode ( reflectionClass $class, $mockNamespace, $mockClass )
generateClassMethodCode ( reflectionClass $class )
generateDefaultConstructor ( $disableMethodChecking = false )
generateGetMockedMethod ( array $mockedMethodNames )
generateInterfaceCode ( reflectionClass $class, $mockNamespace, $mockClass )
generateInterfaceMethodCode ( reflectionClass $class, $addIteratorAggregate )
generateMethodSignature ( reflectionMethod $method )
generateMockControllerMethods ( )
generateUnknownClassCode ( $class, $mockNamespace, $mockClass )
generate__call ( )
getClassName ( $class )
getMethodNameReservedWordByVersion ( )
getNamespace ( $class )
getParameterType ( reflectionParameter $parameter )
getParameters ( reflectionMethod $method )
getParametersSignature ( reflectionMethod $method, $forceMockController = false )
getReturnType ( reflectionMethod $method )
hasVariadic ( reflectionMethod $method )
isVariadic ( reflectionParameter $parameter )
methodNameIsReservedWord ( reflectionMethod $method )

Method Details

__construct() public méthode

public __construct ( )

allIsInterface() public méthode

public allIsInterface ( )

allowUndefinedMethodInInterface() public méthode

allowUndefinedMethodUsage() public méthode

callsToParentClassAreShunted() public méthode

disallowUndefinedMethodInInterface() public méthode

disallowUndefinedMethodUsage() public méthode

generate() public méthode

public generate ( $class, $mockNamespace = null, $mockClass = null )

generateClassCode() protected méthode

protected generateClassCode ( reflectionClass $class, $mockNamespace, $mockClass )
$class reflectionClass

generateClassMethodCode() protected méthode

protected generateClassMethodCode ( reflectionClass $class )
$class reflectionClass

generateDefaultConstructor() protected static méthode

protected static generateDefaultConstructor ( $disableMethodChecking = false )

generateGetMockedMethod() protected static méthode

protected static generateGetMockedMethod ( array $mockedMethodNames )
$mockedMethodNames array

generateInterfaceCode() protected méthode

protected generateInterfaceCode ( reflectionClass $class, $mockNamespace, $mockClass )
$class reflectionClass

generateInterfaceMethodCode() protected méthode

protected generateInterfaceMethodCode ( reflectionClass $class, $addIteratorAggregate )
$class reflectionClass

generateMethodSignature() protected méthode

protected generateMethodSignature ( reflectionMethod $method )
$method reflectionMethod

generateMockControllerMethods() protected static méthode

protected static generateMockControllerMethods ( )

generateUnknownClassCode() protected static méthode

protected static generateUnknownClassCode ( $class, $mockNamespace, $mockClass )

generate__call() protected static méthode

protected static generate__call ( )

getAdapter() public méthode

public getAdapter ( )

getClassName() protected static méthode

protected static getClassName ( $class )

getDefaultNamespace() public méthode

public getDefaultNamespace ( )

getMethodNameReservedWordByVersion() protected static méthode

protected static getMethodNameReservedWordByVersion ( )

getMockedClassCode() public méthode

public getMockedClassCode ( $class, $mockNamespace = null, $mockClass = null )

getNamespace() protected méthode

protected getNamespace ( $class )

getOverload() public méthode

public getOverload ( $method )

getParameterType() protected static méthode

protected static getParameterType ( reflectionParameter $parameter )
$parameter reflectionParameter

getParameters() protected méthode

protected getParameters ( reflectionMethod $method )
$method reflectionMethod

getParametersSignature() protected méthode

protected getParametersSignature ( reflectionMethod $method, $forceMockController = false )
$method reflectionMethod

getReflectionClassFactory() public méthode

getReturnType() protected méthode

protected getReturnType ( reflectionMethod $method )
$method reflectionMethod

hasVariadic() protected static méthode

protected static hasVariadic ( reflectionMethod $method )
$method reflectionMethod

isOrphanized() public méthode

public isOrphanized ( $method )

isOverloaded() public méthode

public isOverloaded ( $method )

isShunted() public méthode

public isShunted ( $method )

isVariadic() protected static méthode

protected static isVariadic ( reflectionParameter $parameter )
$parameter reflectionParameter

methodIsMockable() public méthode

public methodIsMockable ( reflectionMethod $method )
$method reflectionMethod

methodNameIsReservedWord() protected static méthode

protected static methodNameIsReservedWord ( reflectionMethod $method )
$method reflectionMethod

orphanize() public méthode

public orphanize ( $method )

overload() public méthode

public overload ( method $method )
$method mageekguy\atoum\mock\php\method

setAdapter() public méthode

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

setDefaultNamespace() public méthode

public setDefaultNamespace ( $namespace )

setReflectionClassFactory() public méthode

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

shunt() public méthode

public shunt ( $method )

shuntParentClassCalls() public méthode

testedClassIs() public méthode

public testedClassIs ( $testedClass )

undefinedMethodInInterfaceAreAllowed() public méthode

undefinedMethodUsageIsAllowed() public méthode

unshuntParentClassCalls() public méthode

Property Details

$adapter protected_oe property

protected $adapter

$allIsInterface protected_oe property

protected $allIsInterface

$allowUndefinedMethodsUsage protected_oe property

protected $allowUndefinedMethodsUsage

$orphanizedMethods protected_oe property

protected $orphanizedMethods

$overloadedMethods protected_oe property

protected $overloadedMethods

$reflectionClassFactory protected_oe property

protected $reflectionClassFactory

$shuntParentClassCalls protected_oe property

protected $shuntParentClassCalls

$shuntedMethods protected_oe property

protected $shuntedMethods

$testedClass protected_oe property

protected $testedClass