PHP Trait Kraken\_Unit\Promise\_Partial\PromiseCancelledPartial

Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
createDeferred ( ) : Kraken\Promise\DeferredInterface
createPromiseMock ( string[] $methods = [] ) : Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject
getTest ( ) : TUnit
testApiAbort_CallsThenWithValidArguments_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerRejects_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerThrows_ForCancelledPromise ( )
testApiCancel_ReturnsCancelledPromise_ForCancelledPromise ( )
testApiDone_InvokesCancellationHandler_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsInCancellation_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledEmptyPromise_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledNonEmptyPromise_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithException_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithNonException_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerThrowsInCancellation_ForCancelledPromise ( )
testApiFailure_CallsThenWithValidArguments_ForCancelledPromise ( )
testApiIsCancelled_ReturnsFalse_ForCancelledPromise ( )
testApiIsFulfilled_ReturnsFalse_ForCancelledPromise ( )
testApiIsPending_ReturnsTrue_ForCancelledPromise ( )
testApiIsRejected_ReturnsFalse_ForCancelledPromise ( )
testApiReject_HasNoEffect_ForCancelledPromise ( )
testApiResolve_HasNoEffect_ForCancelledPromise ( )
testApiSpread_Returns_FromCancellationHandler_ForCancelledPromise ( )
testApiSpread_SpreadsArguments_ForCancelledPromise ( )
testApiSuccess_CallsThenWithValidArguments_ForCancelledPromise ( )
testApiThen_ForwardsCancellation_ToNextCallback ( )
testApiThen_IgnoresReturnPromisedValue_InCancellationCallback ( )
testApiThen_IgnoresReturnRejection_InCancellationCallback ( )
testApiThen_IgnoresReturnValue_InCancellationCallback ( )
testCaseCancelledPromise_IsImmutable ( )
testCasePromiseCancelled_InvokesNewlyAddedCallback ( )

Method Details

createDeferred() abstract public méthode

abstract public createDeferred ( ) : Kraken\Promise\DeferredInterface
Résultat Kraken\Promise\DeferredInterface

createPromiseMock() abstract public méthode

abstract public createPromiseMock ( string[] $methods = [] ) : Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[]
Résultat Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject

getTest() abstract public méthode

See also: TUnit::getTest
abstract public getTest ( ) : TUnit
Résultat Kraken\Test\TUnit

testApiAbort_CallsThenWithValidArguments_ForCancelledPromise() public méthode

testApiAlways_DoesNotSuppressCancellation_ForCancelledPromise() public méthode

testApiAlways_DoesNotSuppressCancellation_WhenHandlerRejects_ForCancelledPromise() public méthode

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise_ForCancelledPromise() public méthode

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise_ForCancelledPromise() public méthode

testApiAlways_DoesNotSuppressCancellation_WhenHandlerThrows_ForCancelledPromise() public méthode

testApiCancel_ReturnsCancelledPromise_ForCancelledPromise() public méthode

testApiDone_InvokesCancellationHandler_ForCancelledPromise() public méthode

testApiDone_ThrowsException_WhenHandlerCancelsInCancellation_ForCancelledPromise() public méthode

testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledEmptyPromise_ForCancelledPromise() public méthode

testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledNonEmptyPromise_ForCancelledPromise() public méthode

testApiDone_ThrowsException_WhenHandlerCancelsWithException_ForCancelledPromise() public méthode

testApiDone_ThrowsException_WhenHandlerCancelsWithNonException_ForCancelledPromise() public méthode

testApiDone_ThrowsException_WhenHandlerThrowsInCancellation_ForCancelledPromise() public méthode

testApiFailure_CallsThenWithValidArguments_ForCancelledPromise() public méthode

testApiIsCancelled_ReturnsFalse_ForCancelledPromise() public méthode

testApiIsFulfilled_ReturnsFalse_ForCancelledPromise() public méthode

testApiIsPending_ReturnsTrue_ForCancelledPromise() public méthode

testApiIsRejected_ReturnsFalse_ForCancelledPromise() public méthode

testApiReject_HasNoEffect_ForCancelledPromise() public méthode

testApiResolve_HasNoEffect_ForCancelledPromise() public méthode

testApiSpread_Returns_FromCancellationHandler_ForCancelledPromise() public méthode

testApiSpread_SpreadsArguments_ForCancelledPromise() public méthode

testApiSuccess_CallsThenWithValidArguments_ForCancelledPromise() public méthode

testApiThen_ForwardsCancellation_ToNextCallback() public méthode

testApiThen_IgnoresReturnPromisedValue_InCancellationCallback() public méthode

testApiThen_IgnoresReturnRejection_InCancellationCallback() public méthode

testApiThen_IgnoresReturnValue_InCancellationCallback() public méthode

testCaseCancelledPromise_IsImmutable() public méthode

testCasePromiseCancelled_InvokesNewlyAddedCallback() public méthode