PHP Trait React\Promise\PromiseTest\RejectTestTrait

Show file Open project: reactphp/promise

Public Methods

Method Description
alwaysShouldNotSuppressRejection ( )
alwaysShouldNotSuppressRejectionWhenHandlerReturnsANonPromise ( )
alwaysShouldNotSuppressRejectionWhenHandlerReturnsAPromise ( )
alwaysShouldRejectWhenHandlerRejectsForRejection ( )
alwaysShouldRejectWhenHandlerThrowsForRejection ( )
doneShouldInvokeRejectionHandler ( )
doneShouldRecoverWhenRejectionHandlerCatchesException ( )
doneShouldThrowExceptionProvidedAsRejectionValue ( )
doneShouldThrowExceptionThrownByRejectionHandler ( )
doneShouldThrowRejectionExceptionWhenRejectionHandlerRejectsWithException ( )
doneShouldThrowUnhandledRejectionExceptionWhenRejectedWithNonException ( )
doneShouldThrowUnhandledRejectionExceptionWhenRejectionHandlerRejects ( )
doneShouldThrowUnhandledRejectionExceptionWhenRejectionHandlerRetunsPendingPromiseWhichRejectsLater ( )
doneShouldThrowWithDeepNestingPromiseChains ( )
getPromiseTestAdapter ( callable $canceller = null ) : React\Promise\PromiseAdapter\PromiseAdapterInterface
rejectShouldForwardReasonWhenCallbackIsNull ( )
rejectShouldInvokeOtherwiseHandler ( )
rejectShouldMakePromiseImmutable ( )
rejectShouldRejectWithAnImmediateValue ( )
rejectShouldRejectWithFulfilledPromise ( )
rejectShouldRejectWithRejectedPromise ( )

Method Details

alwaysShouldNotSuppressRejection() public method

alwaysShouldNotSuppressRejectionWhenHandlerReturnsANonPromise() public method

alwaysShouldNotSuppressRejectionWhenHandlerReturnsAPromise() public method

alwaysShouldRejectWhenHandlerRejectsForRejection() public method

alwaysShouldRejectWhenHandlerThrowsForRejection() public method

doneShouldInvokeRejectionHandler() public method

doneShouldRecoverWhenRejectionHandlerCatchesException() public method

doneShouldThrowExceptionProvidedAsRejectionValue() public method

doneShouldThrowExceptionThrownByRejectionHandler() public method

doneShouldThrowRejectionExceptionWhenRejectionHandlerRejectsWithException() public method

doneShouldThrowUnhandledRejectionExceptionWhenRejectedWithNonException() public method

doneShouldThrowUnhandledRejectionExceptionWhenRejectionHandlerRejects() public method

doneShouldThrowUnhandledRejectionExceptionWhenRejectionHandlerRetunsPendingPromiseWhichRejectsLater() public method

doneShouldThrowWithDeepNestingPromiseChains() public method

getPromiseTestAdapter() abstract public method

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

rejectShouldForwardReasonWhenCallbackIsNull() public method

rejectShouldInvokeOtherwiseHandler() public method

rejectShouldMakePromiseImmutable() public method

rejectShouldRejectWithAnImmediateValue() public method

rejectShouldRejectWithFulfilledPromise() public method

rejectShouldRejectWithRejectedPromise() public method