PHP Trait React\Promise\PromiseTest\CancelTestTrait

Mostra file Open project: reactphp/promise

Public Methods

Method Description
cancelCalledOnChildrenSouldOnlyCancelWhenAllChildrenCancelled ( )
cancelShouldAlwaysTriggerCancellerWhenCalledOnRootPromise ( )
cancelShouldCallCancellerFromDeepNestedPromiseChain ( )
cancelShouldCallCancellerOnlyOnceIfCancellerResolves ( )
cancelShouldCallCancellerWithResolverArguments ( )
cancelShouldFulfillPromiseIfCancellerFulfills ( )
cancelShouldHaveNoEffectIfCancellerDoesNothing ( )
cancelShouldNotTriggerCancellerWhenCancellingOneChildrenMultipleTimes ( )
cancelShouldRejectPromiseIfCancellerRejects ( )
cancelShouldRejectPromiseWithExceptionIfCancellerThrows ( )
cancelShouldTriggerCancellerOnlyOnceWhenCancellingMultipleTimes ( )
cancelShouldTriggerCancellerWhenAllChildrenCancel ( )
getPromiseTestAdapter ( callable $canceller = null ) : React\Promise\PromiseAdapter\PromiseAdapterInterface

Method Details

cancelCalledOnChildrenSouldOnlyCancelWhenAllChildrenCancelled() public method

cancelShouldAlwaysTriggerCancellerWhenCalledOnRootPromise() public method

cancelShouldCallCancellerFromDeepNestedPromiseChain() public method

cancelShouldCallCancellerOnlyOnceIfCancellerResolves() public method

cancelShouldCallCancellerWithResolverArguments() public method

cancelShouldFulfillPromiseIfCancellerFulfills() public method

cancelShouldHaveNoEffectIfCancellerDoesNothing() public method

cancelShouldNotTriggerCancellerWhenCancellingOneChildrenMultipleTimes() public method

cancelShouldRejectPromiseIfCancellerRejects() public method

cancelShouldRejectPromiseWithExceptionIfCancellerThrows() public method

cancelShouldTriggerCancellerOnlyOnceWhenCancellingMultipleTimes() public method

cancelShouldTriggerCancellerWhenAllChildrenCancel() public method

getPromiseTestAdapter() abstract public method

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