PHP 클래스 mageekguy\atoum\mock\generator

파일 보기 프로젝트 열기: atoum/atoum 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter
$allIsInterface
$allowUndefinedMethodsUsage
$orphanizedMethods
$overloadedMethods
$reflectionClassFactory
$shuntParentClassCalls
$shuntedMethods
$testedClass

공개 메소드들

메소드 설명
__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 ( )

보호된 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

public __construct ( )

allIsInterface() 공개 메소드

public allIsInterface ( )

allowUndefinedMethodInInterface() 공개 메소드

allowUndefinedMethodUsage() 공개 메소드

callsToParentClassAreShunted() 공개 메소드

disallowUndefinedMethodInInterface() 공개 메소드

disallowUndefinedMethodUsage() 공개 메소드

generate() 공개 메소드

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

generateClassCode() 보호된 메소드

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

generateClassMethodCode() 보호된 메소드

protected generateClassMethodCode ( reflectionClass $class )
$class reflectionClass

generateDefaultConstructor() 보호된 정적인 메소드

protected static generateDefaultConstructor ( $disableMethodChecking = false )

generateGetMockedMethod() 보호된 정적인 메소드

protected static generateGetMockedMethod ( array $mockedMethodNames )
$mockedMethodNames array

generateInterfaceCode() 보호된 메소드

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

generateInterfaceMethodCode() 보호된 메소드

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

generateMethodSignature() 보호된 메소드

protected generateMethodSignature ( reflectionMethod $method )
$method reflectionMethod

generateMockControllerMethods() 보호된 정적인 메소드

protected static generateMockControllerMethods ( )

generateUnknownClassCode() 보호된 정적인 메소드

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

generate__call() 보호된 정적인 메소드

protected static generate__call ( )

getAdapter() 공개 메소드

public getAdapter ( )

getClassName() 보호된 정적인 메소드

protected static getClassName ( $class )

getDefaultNamespace() 공개 메소드

public getDefaultNamespace ( )

getMethodNameReservedWordByVersion() 보호된 정적인 메소드

protected static getMethodNameReservedWordByVersion ( )

getMockedClassCode() 공개 메소드

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

getNamespace() 보호된 메소드

protected getNamespace ( $class )

getOverload() 공개 메소드

public getOverload ( $method )

getParameterType() 보호된 정적인 메소드

protected static getParameterType ( reflectionParameter $parameter )
$parameter reflectionParameter

getParameters() 보호된 메소드

protected getParameters ( reflectionMethod $method )
$method reflectionMethod

getParametersSignature() 보호된 메소드

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

getReflectionClassFactory() 공개 메소드

getReturnType() 보호된 메소드

protected getReturnType ( reflectionMethod $method )
$method reflectionMethod

hasVariadic() 보호된 정적인 메소드

protected static hasVariadic ( reflectionMethod $method )
$method reflectionMethod

isOrphanized() 공개 메소드

public isOrphanized ( $method )

isOverloaded() 공개 메소드

public isOverloaded ( $method )

isShunted() 공개 메소드

public isShunted ( $method )

isVariadic() 보호된 정적인 메소드

protected static isVariadic ( reflectionParameter $parameter )
$parameter reflectionParameter

methodIsMockable() 공개 메소드

public methodIsMockable ( reflectionMethod $method )
$method reflectionMethod

methodNameIsReservedWord() 보호된 정적인 메소드

protected static methodNameIsReservedWord ( reflectionMethod $method )
$method reflectionMethod

orphanize() 공개 메소드

public orphanize ( $method )

overload() 공개 메소드

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

setAdapter() 공개 메소드

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

setDefaultNamespace() 공개 메소드

public setDefaultNamespace ( $namespace )

setReflectionClassFactory() 공개 메소드

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

shunt() 공개 메소드

public shunt ( $method )

shuntParentClassCalls() 공개 메소드

testedClassIs() 공개 메소드

public testedClassIs ( $testedClass )

undefinedMethodInInterfaceAreAllowed() 공개 메소드

undefinedMethodUsageIsAllowed() 공개 메소드

unshuntParentClassCalls() 공개 메소드

프로퍼티 상세

$adapter 보호되어 있는 프로퍼티

protected $adapter

$allIsInterface 보호되어 있는 프로퍼티

protected $allIsInterface

$allowUndefinedMethodsUsage 보호되어 있는 프로퍼티

protected $allowUndefinedMethodsUsage

$orphanizedMethods 보호되어 있는 프로퍼티

protected $orphanizedMethods

$overloadedMethods 보호되어 있는 프로퍼티

protected $overloadedMethods

$reflectionClassFactory 보호되어 있는 프로퍼티

protected $reflectionClassFactory

$shuntParentClassCalls 보호되어 있는 프로퍼티

protected $shuntParentClassCalls

$shuntedMethods 보호되어 있는 프로퍼티

protected $shuntedMethods

$testedClass 보호되어 있는 프로퍼티

protected $testedClass