PHP Class Kraken\_Unit\Supervision\SupervisorTest

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

Méthodes publiques

Méthode Description
createSolver ( string[] | null $methods = null ) : Kraken\Supervision\SolverInterface | PHPUnit_Framework_MockObject_MockObject
createSupervisor ( mixed[] $params = [], Kraken\Supervision\SolverInterface[] $rules = [], mixed[] | null $methods = null ) : Supervisor | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiExistsParam_ReturnsFalse_WhenParamDoesNotExist ( )
testApiExistsParam_ReturnsTrue_WhenParamDoesExist ( )
testApiExistsSolver_ReturnsFalse_WhenHandlerDoesNotExist ( )
testApiExistsSolver_ReturnsTrue_WhenHandlerDoesExist ( )
testApiGetParam_ReturnsNull_WhenParamDoesNotExist ( )
testApiGetParam_ReturnsParam_WhenParamDoesExist ( )
testApiGetSolver_ReturnsHandler_WhenHandlerDoesExist ( )
testApiGetSolver_ReturnsNull_WhenHandlerDoesNotExist ( )
testApiInvoke_CallsHandleMethod ( )
testApiRemoveParam_DoesNothing_WhenParamDoesNotExist ( )
testApiRemoveParam_RemovesParam_WhenParamDoesExist ( )
testApiRemoveSolver_DoesNothing_WhenHandlerDoesNotExist ( )
testApiRemoveSolver_RemovesHandler_WhenHandlerDoesExist ( )
testApiResolveHandler_ResolvesHandler_WhenHandlerDoesExistInsideFactory ( )
testApiResolveHandler_ReturnsImmediately_WhenConcreteHandlerPassed ( )
testApiResolveHandler_ThrowsException_WhenHandlerDoesNotExistInsideFactory ( )
testApiSetParam_SetsParam ( )
testApiSetSolver_AcceptsHandler_WhenConcreteHandlerIsPassed ( )
testApiSetSolver_ResolvesHandler_WhenPassedMixedArgumentsArray ( )
testApiSetSolver_ResolvesHandler_WhenPassedMultipleNamesOfExistingHandlers ( )
testApiSetSolver_ResolvesHandler_WhenPassedNameOfExistingHandler ( )
testApiSetSolver_ThrowsException_WhenAtLeastOneHandlerIsInvalid ( )
testApiSolve_HandlesException_UsingFirstValidHandler ( )
testApiSolve_RejectsPromise_WhenNoValidExceptionFound ( )

Method Details

createSolver() public méthode

public createSolver ( string[] | null $methods = null ) : Kraken\Supervision\SolverInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
Résultat Kraken\Supervision\SolverInterface | PHPUnit_Framework_MockObject_MockObject

createSupervisor() public méthode

public createSupervisor ( mixed[] $params = [], Kraken\Supervision\SolverInterface[] $rules = [], mixed[] | null $methods = null ) : Supervisor | PHPUnit_Framework_MockObject_MockObject
$params mixed[]
$rules Kraken\Supervision\SolverInterface[]
$methods mixed[] | null
Résultat Kraken\Supervision\Supervisor | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_CreatesInstance() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiExistsParam_ReturnsFalse_WhenParamDoesNotExist() public méthode

testApiExistsParam_ReturnsTrue_WhenParamDoesExist() public méthode

testApiExistsSolver_ReturnsFalse_WhenHandlerDoesNotExist() public méthode

testApiExistsSolver_ReturnsTrue_WhenHandlerDoesExist() public méthode

testApiGetParam_ReturnsNull_WhenParamDoesNotExist() public méthode

testApiGetParam_ReturnsParam_WhenParamDoesExist() public méthode

testApiGetSolver_ReturnsHandler_WhenHandlerDoesExist() public méthode

testApiGetSolver_ReturnsNull_WhenHandlerDoesNotExist() public méthode

testApiInvoke_CallsHandleMethod() public méthode

testApiRemoveParam_DoesNothing_WhenParamDoesNotExist() public méthode

testApiRemoveParam_RemovesParam_WhenParamDoesExist() public méthode

testApiRemoveSolver_DoesNothing_WhenHandlerDoesNotExist() public méthode

testApiRemoveSolver_RemovesHandler_WhenHandlerDoesExist() public méthode

testApiResolveHandler_ResolvesHandler_WhenHandlerDoesExistInsideFactory() public méthode

testApiResolveHandler_ReturnsImmediately_WhenConcreteHandlerPassed() public méthode

testApiResolveHandler_ThrowsException_WhenHandlerDoesNotExistInsideFactory() public méthode

testApiSetParam_SetsParam() public méthode

testApiSetSolver_AcceptsHandler_WhenConcreteHandlerIsPassed() public méthode

testApiSetSolver_ResolvesHandler_WhenPassedMixedArgumentsArray() public méthode

testApiSetSolver_ResolvesHandler_WhenPassedMultipleNamesOfExistingHandlers() public méthode

testApiSetSolver_ResolvesHandler_WhenPassedNameOfExistingHandler() public méthode

testApiSetSolver_ThrowsException_WhenAtLeastOneHandlerIsInvalid() public méthode

testApiSolve_HandlesException_UsingFirstValidHandler() public méthode

testApiSolve_RejectsPromise_WhenNoValidExceptionFound() public méthode