PHP Trait Kraken\_Unit\Promise\_Partial\ApiCancelPartial

Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
createDeferred ( ) : Kraken\Promise\DeferredInterface
getTest ( ) : TUnit
testApiAlways_DoesNotSuppressCancellation ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise ( )
testApiCancel_CallsCancellerOnce_IfCalledMultipleTimes ( )
testApiCancel_CallsCanceller_FromDeepNestedPromiseChain ( )
testApiCancel_CallsCanceller_OnAllChildrenWhenCalledOnRootPromise ( )
testApiCancel_CancelPromiseOnce_WhenCancellingMultipleTimes ( )
testApiCancel_CancelsPromise_InRightOrder ( )
testApiCancel_CancelsPromise_WhenAllChildrenCancelled ( )
testApiCancel_CancelsPromise_WithAnImmediateValue ( )
testApiCancel_CancelsPromise_WithPromisedValue ( )
testApiCancel_CancelsPromise_WithRejectedPromise ( )
testApiCancel_DoesNotCancelPromise_WhenOneChildCancelled ( )
testApiCancel_DoesNotCancelPromise_WhenOneChildCancelledMultipleTimes ( )
testApiCancel_ForwardsReason_WhenCallbackIsNull ( )
testApiCancel_ForwardsReason_WithoutChange ( )
testApiCancel_ForwardsReason_WithoutChange_WhenOnCancelThrows ( )
testApiCancel_InvokesDoneCancellationHandler ( )
testApiCancel_ReturnsCancelledPromise ( )
testApiCancel_Returns_FromCancellationHandler ( )
testApiCancel_ThrowsExceptionInDone_FromCancellationHandler ( )
testApiCancel_ThrowsExceptionInDone_WhenCancellationHandlerRejects ( )

Method Details

createDeferred() abstract public méthode

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

getTest() abstract public méthode

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

testApiAlways_DoesNotSuppressCancellation() public méthode

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise() public méthode

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise() public méthode

testApiCancel_CallsCancellerOnce_IfCalledMultipleTimes() public méthode

testApiCancel_CallsCanceller_FromDeepNestedPromiseChain() public méthode

testApiCancel_CallsCanceller_OnAllChildrenWhenCalledOnRootPromise() public méthode

testApiCancel_CancelPromiseOnce_WhenCancellingMultipleTimes() public méthode

testApiCancel_CancelsPromise_InRightOrder() public méthode

testApiCancel_CancelsPromise_WhenAllChildrenCancelled() public méthode

testApiCancel_CancelsPromise_WithAnImmediateValue() public méthode

testApiCancel_CancelsPromise_WithPromisedValue() public méthode

testApiCancel_CancelsPromise_WithRejectedPromise() public méthode

testApiCancel_DoesNotCancelPromise_WhenOneChildCancelled() public méthode

testApiCancel_DoesNotCancelPromise_WhenOneChildCancelledMultipleTimes() public méthode

testApiCancel_ForwardsReason_WhenCallbackIsNull() public méthode

testApiCancel_ForwardsReason_WithoutChange() public méthode

testApiCancel_ForwardsReason_WithoutChange_WhenOnCancelThrows() public méthode

testApiCancel_InvokesDoneCancellationHandler() public méthode

testApiCancel_ReturnsCancelledPromise() public méthode

testApiCancel_Returns_FromCancellationHandler() public méthode

testApiCancel_ThrowsExceptionInDone_FromCancellationHandler() public méthode

testApiCancel_ThrowsExceptionInDone_WhenCancellationHandlerRejects() public méthode