PHP Class Kraken\_Unit\Util\Factory\FactoryPluginTest

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

Public Methods

Method Description
createFactory ( ) : Kraken\Util\Factory\FactoryInterface
createFactoryPlugin ( callable $register = null, callable $unregister = null ) : Kraken\Util\Factory\FactoryPluginInterface | PHPUnit_Framework_MockObject_MockObject
testApiRegisterPlugin_RegistersPlugin ( )
testApiRegisterPlugin_ReturnsFactoryPlugin ( )
testApiRegisterPlugin_ThrowsException_WhenRegisterThrows ( )
testApiUnregisterPlugin_DoesNothing_WhenPluginIsNotRegistered ( )
testApiUnregisterPlugin_ReturnsFactoryPlugin ( )
testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered ( )

Method Details

createFactory() public method

public createFactory ( ) : Kraken\Util\Factory\FactoryInterface
return Kraken\Util\Factory\FactoryInterface

createFactoryPlugin() public method

public createFactoryPlugin ( callable $register = null, callable $unregister = null ) : Kraken\Util\Factory\FactoryPluginInterface | PHPUnit_Framework_MockObject_MockObject
$register callable
$unregister callable
return Kraken\Util\Factory\FactoryPluginInterface | PHPUnit_Framework_MockObject_MockObject

testApiRegisterPlugin_RegistersPlugin() public method

testApiRegisterPlugin_ReturnsFactoryPlugin() public method

testApiRegisterPlugin_ThrowsException_WhenRegisterThrows() public method

testApiUnregisterPlugin_DoesNothing_WhenPluginIsNotRegistered() public method

testApiUnregisterPlugin_ReturnsFactoryPlugin() public method

testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered() public method