PHP Trait Kraken\_Unit\Promise\_Partial\PromiseCancelledPartial

Mostra file Open project: kraken-php/framework

Public Methods

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

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

createPromiseMock() abstract public method

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

getTest() abstract public method

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

testApiAbort_CallsThenWithValidArguments_ForCancelledPromise() public method

testApiAlways_DoesNotSuppressCancellation_ForCancelledPromise() public method

testApiAlways_DoesNotSuppressCancellation_WhenHandlerRejects_ForCancelledPromise() public method

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise_ForCancelledPromise() public method

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise_ForCancelledPromise() public method

testApiAlways_DoesNotSuppressCancellation_WhenHandlerThrows_ForCancelledPromise() public method

testApiCancel_ReturnsCancelledPromise_ForCancelledPromise() public method

testApiDone_InvokesCancellationHandler_ForCancelledPromise() public method

testApiDone_ThrowsException_WhenHandlerCancelsInCancellation_ForCancelledPromise() public method

testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledEmptyPromise_ForCancelledPromise() public method

testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledNonEmptyPromise_ForCancelledPromise() public method

testApiDone_ThrowsException_WhenHandlerCancelsWithException_ForCancelledPromise() public method

testApiDone_ThrowsException_WhenHandlerCancelsWithNonException_ForCancelledPromise() public method

testApiDone_ThrowsException_WhenHandlerThrowsInCancellation_ForCancelledPromise() public method

testApiFailure_CallsThenWithValidArguments_ForCancelledPromise() public method

testApiIsCancelled_ReturnsFalse_ForCancelledPromise() public method

testApiIsFulfilled_ReturnsFalse_ForCancelledPromise() public method

testApiIsPending_ReturnsTrue_ForCancelledPromise() public method

testApiIsRejected_ReturnsFalse_ForCancelledPromise() public method

testApiReject_HasNoEffect_ForCancelledPromise() public method

testApiResolve_HasNoEffect_ForCancelledPromise() public method

testApiSpread_Returns_FromCancellationHandler_ForCancelledPromise() public method

testApiSpread_SpreadsArguments_ForCancelledPromise() public method

testApiSuccess_CallsThenWithValidArguments_ForCancelledPromise() public method

testApiThen_ForwardsCancellation_ToNextCallback() public method

testApiThen_IgnoresReturnPromisedValue_InCancellationCallback() public method

testApiThen_IgnoresReturnRejection_InCancellationCallback() public method

testApiThen_IgnoresReturnValue_InCancellationCallback() public method

testCaseCancelledPromise_IsImmutable() public method

testCasePromiseCancelled_InvokesNewlyAddedCallback() public method