PHP Trait Kraken\_Unit\Promise\_Partial\PromiseFulfilledPartial

Show 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_ForFulfilledPromise ( )
testApiAlways_DoesNotSuppressValue_ForFulfilledPromise ( )
testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsNonPromise_ForFulfilledPromise ( )
testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsPromise_ForFulfilledPromise ( )
testApiAlways_RejectsPromise_WhenHandlerRejects_ForFulfilledPromise ( )
testApiAlways_RejectsPromise_WhenHandlerThrows_ForFulfilledPromise ( )
testApiCancel_HasNoEffect_ForFulfilledPromise ( )
testApiCancel_ReturnsFulfilledPromise_ForFulfilledPromise ( )
testApiDone_InvokesFulfillmentHandler_ForFulfilledPromise ( )
testApiDone_ThrowsException_WhenHandlerRejectsInFulfillment_ForFulfilledPromise ( )
testApiDone_ThrowsException_WhenHandlerThrowsInFulfillment_ForFulfilledPromise ( )
testApiFailure_CallsThenWithValidArguments_ForFulfilledPromise ( )
testApiFailure_DoesNotInvokeRejectionHandler_ForFulfilledPromise ( )
testApiIsCancelled_ReturnsFalse_ForFulfilledPromise ( )
testApiIsFulfilled_ReturnsFalse_ForFulfilledPromise ( )
testApiIsPending_ReturnsTrue_ForFulfilledPromise ( )
testApiIsRejected_ReturnsFalse_ForFulfilledPromise ( )
testApiSpread_Returns_FromFulfillmentHandler_ForFullfilledPromise ( )
testApiSpread_SpreadsArguments_ForFullfilledPromise ( )
testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise ( )
testApiThen_ForwardsPromisedValue_ToNextCallback ( )
testApiThen_ForwardsRejection_ToNextCallback ( )
testApiThen_ForwardsValue_ToNextCallback ( )
testApiThen_ForwardsValue_WhenCallbackIsNull ( )
testApiThen_SwitchesFromCallbacksToErrbacks_WhenCallbackThrows ( )
testCasePromiseFulfilled_InvokesNewlyAddedCallback ( )
testCasePromiseFulfilled_IsImmutable ( )

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_ForFulfilledPromise() public method

testApiAlways_DoesNotSuppressValue_ForFulfilledPromise() public method

testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsNonPromise_ForFulfilledPromise() public method

testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsPromise_ForFulfilledPromise() public method

testApiAlways_RejectsPromise_WhenHandlerRejects_ForFulfilledPromise() public method

testApiAlways_RejectsPromise_WhenHandlerThrows_ForFulfilledPromise() public method

testApiCancel_HasNoEffect_ForFulfilledPromise() public method

testApiCancel_ReturnsFulfilledPromise_ForFulfilledPromise() public method

testApiDone_InvokesFulfillmentHandler_ForFulfilledPromise() public method

testApiDone_ThrowsException_WhenHandlerRejectsInFulfillment_ForFulfilledPromise() public method

testApiDone_ThrowsException_WhenHandlerThrowsInFulfillment_ForFulfilledPromise() public method

testApiFailure_CallsThenWithValidArguments_ForFulfilledPromise() public method

testApiFailure_DoesNotInvokeRejectionHandler_ForFulfilledPromise() public method

testApiIsCancelled_ReturnsFalse_ForFulfilledPromise() public method

testApiIsFulfilled_ReturnsFalse_ForFulfilledPromise() public method

testApiIsPending_ReturnsTrue_ForFulfilledPromise() public method

testApiIsRejected_ReturnsFalse_ForFulfilledPromise() public method

testApiSpread_Returns_FromFulfillmentHandler_ForFullfilledPromise() public method

testApiSpread_SpreadsArguments_ForFullfilledPromise() public method

testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise() public method

testApiThen_ForwardsPromisedValue_ToNextCallback() public method

testApiThen_ForwardsRejection_ToNextCallback() public method

testApiThen_ForwardsValue_ToNextCallback() public method

testApiThen_ForwardsValue_WhenCallbackIsNull() public method

testApiThen_SwitchesFromCallbacksToErrbacks_WhenCallbackThrows() public method

testCasePromiseFulfilled_InvokesNewlyAddedCallback() public method

testCasePromiseFulfilled_IsImmutable() public method