PHP Class Kraken\_Unit\Util\Factory\SupervisorPluginTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method Description
createSupervisor ( ) : Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject
createSupervisorPlugin ( callable $register = null, callable $unregister = null ) : Kraken\Supervision\SupervisorPluginInterface | PHPUnit_Framework_MockObject_MockObject
testApiRegisterPlugin_RegistersPlugin ( )
testApiRegisterPlugin_ReturnsPlugin ( )
testApiRegisterPlugin_ThrowsException_WhenRegisterThrows ( )
testApiUnregisterPlugin_DoesNothing_WhenPluginIsNotRegistered ( )
testApiUnregisterPlugin_ReturnsPlugin ( )
testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered ( )

Method Details

createSupervisor() public method

public createSupervisor ( ) : Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject

createSupervisorPlugin() public method

public createSupervisorPlugin ( callable $register = null, callable $unregister = null ) : Kraken\Supervision\SupervisorPluginInterface | PHPUnit_Framework_MockObject_MockObject
$register callable
$unregister callable
return Kraken\Supervision\SupervisorPluginInterface | PHPUnit_Framework_MockObject_MockObject

testApiRegisterPlugin_RegistersPlugin() public method

testApiRegisterPlugin_ReturnsPlugin() public method

testApiRegisterPlugin_ThrowsException_WhenRegisterThrows() public method

testApiUnregisterPlugin_DoesNothing_WhenPluginIsNotRegistered() public method

testApiUnregisterPlugin_ReturnsPlugin() public method

testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered() public method