PHP Class mageekguy\atoum\mock\generator

Datei anzeigen Open project: atoum/atoum Class Usage Examples

Protected Properties

Property Type Description
$adapter
$allIsInterface
$allowUndefinedMethodsUsage
$orphanizedMethods
$overloadedMethods
$reflectionClassFactory
$shuntParentClassCalls
$shuntedMethods
$testedClass

Public Methods

Method 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 ( )

Protected Methods

Method 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 method

public __construct ( )

allIsInterface() public method

public allIsInterface ( )

allowUndefinedMethodInInterface() public method

allowUndefinedMethodUsage() public method

callsToParentClassAreShunted() public method

disallowUndefinedMethodInInterface() public method

disallowUndefinedMethodUsage() public method

generate() public method

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

generateClassCode() protected method

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

generateClassMethodCode() protected method

protected generateClassMethodCode ( reflectionClass $class )
$class reflectionClass

generateDefaultConstructor() protected static method

protected static generateDefaultConstructor ( $disableMethodChecking = false )

generateGetMockedMethod() protected static method

protected static generateGetMockedMethod ( array $mockedMethodNames )
$mockedMethodNames array

generateInterfaceCode() protected method

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

generateInterfaceMethodCode() protected method

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

generateMethodSignature() protected method

protected generateMethodSignature ( reflectionMethod $method )
$method reflectionMethod

generateMockControllerMethods() protected static method

protected static generateMockControllerMethods ( )

generateUnknownClassCode() protected static method

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

generate__call() protected static method

protected static generate__call ( )

getAdapter() public method

public getAdapter ( )

getClassName() protected static method

protected static getClassName ( $class )

getDefaultNamespace() public method

public getDefaultNamespace ( )

getMethodNameReservedWordByVersion() protected static method

protected static getMethodNameReservedWordByVersion ( )

getMockedClassCode() public method

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

getNamespace() protected method

protected getNamespace ( $class )

getOverload() public method

public getOverload ( $method )

getParameterType() protected static method

protected static getParameterType ( reflectionParameter $parameter )
$parameter reflectionParameter

getParameters() protected method

protected getParameters ( reflectionMethod $method )
$method reflectionMethod

getParametersSignature() protected method

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

getReflectionClassFactory() public method

getReturnType() protected method

protected getReturnType ( reflectionMethod $method )
$method reflectionMethod

hasVariadic() protected static method

protected static hasVariadic ( reflectionMethod $method )
$method reflectionMethod

isOrphanized() public method

public isOrphanized ( $method )

isOverloaded() public method

public isOverloaded ( $method )

isShunted() public method

public isShunted ( $method )

isVariadic() protected static method

protected static isVariadic ( reflectionParameter $parameter )
$parameter reflectionParameter

methodIsMockable() public method

public methodIsMockable ( reflectionMethod $method )
$method reflectionMethod

methodNameIsReservedWord() protected static method

protected static methodNameIsReservedWord ( reflectionMethod $method )
$method reflectionMethod

orphanize() public method

public orphanize ( $method )

overload() public method

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

setAdapter() public method

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

setDefaultNamespace() public method

public setDefaultNamespace ( $namespace )

setReflectionClassFactory() public method

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

shunt() public method

public shunt ( $method )

shuntParentClassCalls() public method

testedClassIs() public method

public testedClassIs ( $testedClass )

undefinedMethodInInterfaceAreAllowed() public method

undefinedMethodUsageIsAllowed() public method

unshuntParentClassCalls() public method

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