PHP Trait Kraken\_Unit\Promise\_Partial\ApiResolvePartial

Datei anzeigen Open project: kraken-php/framework

Public Methods

Method Description
createDeferred ( ) : Kraken\Promise\DeferredInterface
getTest ( ) : TUnit
testApiAlways_DoesNotSuppressValue ( )
testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsNonPromise ( )
testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsPromise ( )
testApiAlways_RejectsPromise_WhenHandlerRejects_AfterResolved ( )
testApiAlways_RejectsPromise_WhenHandlerThrows_AfterResolved ( )
testApiDone_ThrowsException_FromFulfillmentHandler ( )
testApiDone_ThrowsException_WhenFulfillmentHandlerRejects ( )
testApiResolve_ForwardsValue_WhenCallbackIsNull ( )
testApiResolve_InvokesDoneFulfillmentHandler ( )
testApiResolve_MakesPromiseImmutable ( )
testApiResolve_RejectsPromise_WhenResolvedWithRejectedPromise ( )
testApiResolve_ResolvesPromise ( )
testApiResolve_ResolvesPromise_WithPromisedValue ( )
testApiResolve_ReturnsFulfilledPromise ( )
testApiResolve_Returns_FromFulfillmentHandler ( )

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

testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsNonPromise() public method

testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsPromise() public method

testApiAlways_RejectsPromise_WhenHandlerRejects_AfterResolved() public method

testApiAlways_RejectsPromise_WhenHandlerThrows_AfterResolved() public method

testApiDone_ThrowsException_FromFulfillmentHandler() public method

testApiDone_ThrowsException_WhenFulfillmentHandlerRejects() public method

testApiResolve_ForwardsValue_WhenCallbackIsNull() public method

testApiResolve_InvokesDoneFulfillmentHandler() public method

testApiResolve_MakesPromiseImmutable() public method

testApiResolve_RejectsPromise_WhenResolvedWithRejectedPromise() public method

testApiResolve_ResolvesPromise() public method

testApiResolve_ResolvesPromise_WithPromisedValue() public method

testApiResolve_ReturnsFulfilledPromise() public method

testApiResolve_Returns_FromFulfillmentHandler() public method