PHP Trait Kraken\_Unit\Util\Factory\_Partial\SimpleFactoryPartial

Exibir arquivo Open project: kraken-php/framework

Public Methods

Method Description
createFactory ( ) : Kraken\Util\Factory\SimpleFactoryInterface
getTest ( ) : Kraken\_Unit\TestCase
testApiBindParam_BindsParam ( )
testApiBindParam_ReturnsCaller ( )
testApiCreate_CallsAndReturnsFromDefinition ( )
testApiCreate_ThrowsException_ForNonExistingKey ( )
testApiDefine_AttachesFactoryMethod ( )
testApiDefine_ReturnsCaller ( )
testApiGetDefinition_ReturnsSameCallable_ForExistingKey ( )
testApiGetDefinition_ThrowsException_ForNonExistingKey ( )
testApiGetParam_ResolvesCallable ( )
testApiGetParam_ReturnsSameObject_ForExistingKey ( )
testApiGetParam_ThrowsException_ForNonExistingKey ( )
testApiGetParams_ReturnsArray_WhenParamsWereSet ( )
testApiGetParams_ReturnsEmptyArray_WhenNoParamsWereSet ( )
testApiHasDefinition_ReturnsFalse_ForNonExistingKey ( )
testApiHasDefinition_ReturnsTrue_ForExistingKey ( )
testApiHasParam_ReturnsFalse_ForNonExistingKey ( )
testApiHasParam_ReturnsTrue_ForExistingKey ( )
testApiUnbindParam_DoesNothing_ForNonExistingKey ( )
testApiUnbindParam_ReturnsCaller ( )
testApiUnbindParam_UnbindsParam_ForExistingKey ( )

Method Details

createFactory() abstract public method

abstract public createFactory ( ) : Kraken\Util\Factory\SimpleFactoryInterface
return Kraken\Util\Factory\SimpleFactoryInterface

getTest() abstract public method

See also: TestCase::getTest
abstract public getTest ( ) : Kraken\_Unit\TestCase
return Kraken\_Unit\TestCase

testApiBindParam_BindsParam() public method

testApiBindParam_ReturnsCaller() public method

testApiCreate_CallsAndReturnsFromDefinition() public method

testApiCreate_ThrowsException_ForNonExistingKey() public method

testApiDefine_AttachesFactoryMethod() public method

testApiDefine_ReturnsCaller() public method

testApiGetDefinition_ReturnsSameCallable_ForExistingKey() public method

testApiGetDefinition_ThrowsException_ForNonExistingKey() public method

testApiGetParam_ResolvesCallable() public method

testApiGetParam_ReturnsSameObject_ForExistingKey() public method

testApiGetParam_ThrowsException_ForNonExistingKey() public method

testApiGetParams_ReturnsArray_WhenParamsWereSet() public method

testApiGetParams_ReturnsEmptyArray_WhenNoParamsWereSet() public method

testApiHasDefinition_ReturnsFalse_ForNonExistingKey() public method

testApiHasDefinition_ReturnsTrue_ForExistingKey() public method

testApiHasParam_ReturnsFalse_ForNonExistingKey() public method

testApiHasParam_ReturnsTrue_ForExistingKey() public method

testApiUnbindParam_DoesNothing_ForNonExistingKey() public method

testApiUnbindParam_ReturnsCaller() public method

testApiUnbindParam_UnbindsParam_ForExistingKey() public method