PHP Trait Kraken\_Unit\Promise\_Partial\ApiRejectPartial

Datei anzeigen Open project: kraken-php/framework

Public Methods

Method Description
createDeferred ( ) : Kraken\Promise\DeferredInterface
getTest ( ) : TUnit
testApiAlways_DoesNotSuppressRejection ( )
testApiAlways_DoesNotSuppressRejection_WhenHandlerReturnsNonPromise ( )
testApiAlways_DoesNotSuppressRejection_WhenHandlerReturnsPromise ( )
testApiAlways_RejectsPromise_WhenHandlerRejects_AfterReject ( )
testApiAlways_RejectsPromise_WhenHandlerThrows_AfterReject ( )
testApiDone_Recovers_WhenRejectionHandlerCatchesException ( )
testApiDone_ThrowsException_FromRejectionHandler ( )
testApiDone_ThrowsException_ProvidedAsRejectionValue ( )
testApiDone_ThrowsException_WhenRejectedWithNonException ( )
testApiDone_ThrowsException_WhenRejectionHandlerRejects ( )
testApiDone_ThrowsException_WhenRejectionHandlerRejectsWithException ( )
testApiDone_ThrowsException_WhenRejectionHandlerRetunsPendingPromiseWhichRejectsLater ( )
testApiDone_ThrowsException_WithDeepNestingPromiseChains ( )
testApiReject_ForwardsReason_WhenCallbackIsNull ( )
testApiReject_InvokesDoneRejectionHandler ( )
testApiReject_MakesPromiseImmutable ( )
testApiReject_RejectsPromise_WithAnImmediateValue ( )
testApiReject_RejectsPromise_WithFulfilledPromise ( )
testApiReject_RejectsPromise_WithRejectedPromise ( )
testApiReject_ReturnsRejectedPromise ( )
testApiReject_Returns_FromRejectionHandler ( )

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

testApiAlways_DoesNotSuppressRejection_WhenHandlerReturnsNonPromise() public method

testApiAlways_DoesNotSuppressRejection_WhenHandlerReturnsPromise() public method

testApiAlways_RejectsPromise_WhenHandlerRejects_AfterReject() public method

testApiAlways_RejectsPromise_WhenHandlerThrows_AfterReject() public method

testApiDone_Recovers_WhenRejectionHandlerCatchesException() public method

testApiDone_ThrowsException_FromRejectionHandler() public method

testApiDone_ThrowsException_ProvidedAsRejectionValue() public method

testApiDone_ThrowsException_WhenRejectedWithNonException() public method

testApiDone_ThrowsException_WhenRejectionHandlerRejects() public method

testApiDone_ThrowsException_WhenRejectionHandlerRejectsWithException() public method

testApiDone_ThrowsException_WhenRejectionHandlerRetunsPendingPromiseWhichRejectsLater() public method

testApiDone_ThrowsException_WithDeepNestingPromiseChains() public method

testApiReject_ForwardsReason_WhenCallbackIsNull() public method

testApiReject_InvokesDoneRejectionHandler() public method

testApiReject_MakesPromiseImmutable() public method

testApiReject_RejectsPromise_WithAnImmediateValue() public method

testApiReject_RejectsPromise_WithFulfilledPromise() public method

testApiReject_RejectsPromise_WithRejectedPromise() public method

testApiReject_ReturnsRejectedPromise() public method

testApiReject_Returns_FromRejectionHandler() public method