PHP Class mageekguy\atoum\mock\controller

Inheritance: extends mageekguy\atoum\test\adapter
显示文件 Open project: atoum/atoum Class Usage Examples

Protected Properties

Property Type Description
$autoBind
$autoBindForNewMock
$controlNextNewMock
$iterator
$linker
$mockClass
$mockMethods

Public Methods

Method Description
__construct ( )
__get ( $method )
__isset ( $method )
__set ( $method, $mixed )
__unset ( $method )
autoBindIsEnabled ( )
control ( mageekguy\atoum\mock\aggregator $mock )
controlNextNewMock ( )
disableAutoBind ( )
disableAutoBindForNewMock ( )
disableMethodChecking ( )
enableAutoBind ( )
enableAutoBindForNewMock ( )
get ( $unset = true )
getCalls ( call $call = null, $identical = false )
getForMock ( mageekguy\atoum\mock\aggregator $mock )
getIterator ( )
getMethods ( )
getMock ( )
getMockClass ( )
invoke ( $method, array $arguments = [] )
methods ( closure $filter = null )
methodsMatching ( $regex )
notControlNextNewMock ( )
reset ( )
setIterator ( mageekguy\atoum\mock\controller\iterator $iterator = null )
setLinker ( mageekguy\atoum\mock\controller\linker $linker = null )

Protected Methods

Method Description
buildCall ( $function, array $arguments )
buildInvoker ( $methodName, closure $factory = null )
checkMethod ( $method )
setInvoker ( $methodName, closure $factory = null )

Method Details

__construct() public method

public __construct ( )

__get() public method

public __get ( $method )

__isset() public method

public __isset ( $method )

__set() public method

public __set ( $method, $mixed )

__unset() public method

public __unset ( $method )

autoBindIsEnabled() public method

public autoBindIsEnabled ( )

buildCall() protected method

protected buildCall ( $function, array $arguments )
$arguments array

buildInvoker() protected method

protected buildInvoker ( $methodName, closure $factory = null )
$factory closure

checkMethod() protected method

protected checkMethod ( $method )

control() public method

public control ( mageekguy\atoum\mock\aggregator $mock )
$mock mageekguy\atoum\mock\aggregator

controlNextNewMock() public method

public controlNextNewMock ( )

disableAutoBind() public method

public disableAutoBind ( )

disableAutoBindForNewMock() public static method

public static disableAutoBindForNewMock ( )

disableMethodChecking() public method

enableAutoBind() public method

public enableAutoBind ( )

enableAutoBindForNewMock() public static method

public static enableAutoBindForNewMock ( )

get() public static method

public static get ( $unset = true )

getCalls() public method

public getCalls ( call $call = null, $identical = false )
$call mageekguy\atoum\test\adapter\call

getForMock() public static method

public static getForMock ( mageekguy\atoum\mock\aggregator $mock )
$mock mageekguy\atoum\mock\aggregator

getIterator() public method

public getIterator ( )

getMethods() public method

public getMethods ( )

getMock() public method

public getMock ( )

getMockClass() public method

public getMockClass ( )

invoke() public method

public invoke ( $method, array $arguments = [] )
$arguments array

methods() public method

public methods ( closure $filter = null )
$filter closure

methodsMatching() public method

public methodsMatching ( $regex )

notControlNextNewMock() public method

reset() public method

public reset ( )

setInvoker() protected method

protected setInvoker ( $methodName, closure $factory = null )
$factory closure

setIterator() public method

public setIterator ( mageekguy\atoum\mock\controller\iterator $iterator = null )
$iterator mageekguy\atoum\mock\controller\iterator

setLinker() public static method

public static setLinker ( mageekguy\atoum\mock\controller\linker $linker = null )
$linker mageekguy\atoum\mock\controller\linker

Property Details

$autoBind protected_oe property

protected $autoBind

$autoBindForNewMock protected_oe static_oe property

protected static $autoBindForNewMock

$controlNextNewMock protected_oe static_oe property

protected static $controlNextNewMock

$iterator protected_oe property

protected $iterator

$linker protected_oe static_oe property

protected static $linker

$mockClass protected_oe property

protected $mockClass

$mockMethods protected_oe property

protected $mockMethods