PHP Trait React\Promise\PromiseTest\ResolveTestTrait

Show file Open project: reactphp/promise

Public Methods

Method Description
alwaysShouldNotSuppressValue ( )
alwaysShouldNotSuppressValueWhenHandlerReturnsANonPromise ( )
alwaysShouldNotSuppressValueWhenHandlerReturnsAPromise ( )
alwaysShouldRejectWhenHandlerRejectsForFulfillment ( )
alwaysShouldRejectWhenHandlerThrowsForFulfillment ( )
doneShouldInvokeFulfillmentHandler ( )
doneShouldThrowExceptionThrownFulfillmentHandler ( )
doneShouldThrowUnhandledRejectionExceptionWhenFulfillmentHandlerRejects ( )
getPromiseTestAdapter ( callable $canceller = null ) : React\Promise\PromiseAdapter\PromiseAdapterInterface
resolveShouldForwardValueWhenCallbackIsNull ( )
resolveShouldMakePromiseImmutable ( )
resolveShouldRejectWhenResolvedWithItself ( )
resolveShouldRejectWhenResolvedWithRejectedPromise ( )
resolveShouldResolve ( )
resolveShouldResolveWithPromisedValue ( )

Method Details

alwaysShouldNotSuppressValue() public method

alwaysShouldNotSuppressValueWhenHandlerReturnsANonPromise() public method

alwaysShouldNotSuppressValueWhenHandlerReturnsAPromise() public method

alwaysShouldRejectWhenHandlerRejectsForFulfillment() public method

alwaysShouldRejectWhenHandlerThrowsForFulfillment() public method

doneShouldInvokeFulfillmentHandler() public method

doneShouldThrowExceptionThrownFulfillmentHandler() public method

doneShouldThrowUnhandledRejectionExceptionWhenFulfillmentHandlerRejects() public method

getPromiseTestAdapter() abstract public method

abstract public getPromiseTestAdapter ( callable $canceller = null ) : React\Promise\PromiseAdapter\PromiseAdapterInterface
$canceller callable
return React\Promise\PromiseAdapter\PromiseAdapterInterface

resolveShouldForwardValueWhenCallbackIsNull() public method

resolveShouldMakePromiseImmutable() public method

resolveShouldRejectWhenResolvedWithItself() public method

resolveShouldRejectWhenResolvedWithRejectedPromise() public method

resolveShouldResolve() public method

resolveShouldResolveWithPromisedValue() public method