PHP Trait Kraken\_Unit\Promise\_Partial\ApiCancelPartial

显示文件 Open project: kraken-php/framework

Public Methods

Method 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 method

abstract public createDeferred ( ) : Kraken\Promise\DeferredInterface
return Kraken\Promise\DeferredInterface

getTest() abstract public method

See also: TUnit::getTest
abstract public getTest ( ) : TUnit
return Kraken\Test\TUnit

testApiAlways_DoesNotSuppressCancellation() public method

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise() public method

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise() public method

testApiCancel_CallsCancellerOnce_IfCalledMultipleTimes() public method

testApiCancel_CallsCanceller_FromDeepNestedPromiseChain() public method

testApiCancel_CallsCanceller_OnAllChildrenWhenCalledOnRootPromise() public method

testApiCancel_CancelPromiseOnce_WhenCancellingMultipleTimes() public method

testApiCancel_CancelsPromise_InRightOrder() public method

testApiCancel_CancelsPromise_WhenAllChildrenCancelled() public method

testApiCancel_CancelsPromise_WithAnImmediateValue() public method

testApiCancel_CancelsPromise_WithPromisedValue() public method

testApiCancel_CancelsPromise_WithRejectedPromise() public method

testApiCancel_DoesNotCancelPromise_WhenOneChildCancelled() public method

testApiCancel_DoesNotCancelPromise_WhenOneChildCancelledMultipleTimes() public method

testApiCancel_ForwardsReason_WhenCallbackIsNull() public method

testApiCancel_ForwardsReason_WithoutChange() public method

testApiCancel_ForwardsReason_WithoutChange_WhenOnCancelThrows() public method

testApiCancel_InvokesDoneCancellationHandler() public method

testApiCancel_ReturnsCancelledPromise() public method

testApiCancel_Returns_FromCancellationHandler() public method

testApiCancel_ThrowsExceptionInDone_FromCancellationHandler() public method

testApiCancel_ThrowsExceptionInDone_WhenCancellationHandlerRejects() public method