PHP Class Kraken\_Unit\Util\Factory\FactoryPluginTest

Inheritance: extends Kraken\Test\TUnit
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode 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 méthode

public createFactory ( ) : Kraken\Util\Factory\FactoryInterface
Résultat Kraken\Util\Factory\FactoryInterface

createFactoryPlugin() public méthode

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

testApiRegisterPlugin_RegistersPlugin() public méthode

testApiRegisterPlugin_ReturnsFactoryPlugin() public méthode

testApiRegisterPlugin_ThrowsException_WhenRegisterThrows() public méthode

testApiUnregisterPlugin_DoesNothing_WhenPluginIsNotRegistered() public méthode

testApiUnregisterPlugin_ReturnsFactoryPlugin() public méthode

testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered() public méthode