PHP 트레잇 Kraken\_Unit\Promise\_Partial\PromiseCancelledPartial

파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
createDeferred ( ) : Kraken\Promise\DeferredInterface
createPromiseMock ( string[] $methods = [] ) : Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject
getTest ( ) : TUnit
testApiAbort_CallsThenWithValidArguments_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerRejects_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise_ForCancelledPromise ( )
testApiAlways_DoesNotSuppressCancellation_WhenHandlerThrows_ForCancelledPromise ( )
testApiCancel_ReturnsCancelledPromise_ForCancelledPromise ( )
testApiDone_InvokesCancellationHandler_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsInCancellation_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledEmptyPromise_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledNonEmptyPromise_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithException_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerCancelsWithNonException_ForCancelledPromise ( )
testApiDone_ThrowsException_WhenHandlerThrowsInCancellation_ForCancelledPromise ( )
testApiFailure_CallsThenWithValidArguments_ForCancelledPromise ( )
testApiIsCancelled_ReturnsFalse_ForCancelledPromise ( )
testApiIsFulfilled_ReturnsFalse_ForCancelledPromise ( )
testApiIsPending_ReturnsTrue_ForCancelledPromise ( )
testApiIsRejected_ReturnsFalse_ForCancelledPromise ( )
testApiReject_HasNoEffect_ForCancelledPromise ( )
testApiResolve_HasNoEffect_ForCancelledPromise ( )
testApiSpread_Returns_FromCancellationHandler_ForCancelledPromise ( )
testApiSpread_SpreadsArguments_ForCancelledPromise ( )
testApiSuccess_CallsThenWithValidArguments_ForCancelledPromise ( )
testApiThen_ForwardsCancellation_ToNextCallback ( )
testApiThen_IgnoresReturnPromisedValue_InCancellationCallback ( )
testApiThen_IgnoresReturnRejection_InCancellationCallback ( )
testApiThen_IgnoresReturnValue_InCancellationCallback ( )
testCaseCancelledPromise_IsImmutable ( )
testCasePromiseCancelled_InvokesNewlyAddedCallback ( )

메소드 상세

createDeferred() 추상적인 공개 메소드

abstract public createDeferred ( ) : Kraken\Promise\DeferredInterface
리턴 Kraken\Promise\DeferredInterface

createPromiseMock() 추상적인 공개 메소드

abstract public createPromiseMock ( string[] $methods = [] ) : Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[]
리턴 Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject

getTest() 추상적인 공개 메소드

또한 보기: TUnit::getTest
abstract public getTest ( ) : TUnit
리턴 Kraken\Test\TUnit

testApiAbort_CallsThenWithValidArguments_ForCancelledPromise() 공개 메소드

testApiAlways_DoesNotSuppressCancellation_ForCancelledPromise() 공개 메소드

testApiAlways_DoesNotSuppressCancellation_WhenHandlerRejects_ForCancelledPromise() 공개 메소드

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsNonPromise_ForCancelledPromise() 공개 메소드

testApiAlways_DoesNotSuppressCancellation_WhenHandlerReturnsPromise_ForCancelledPromise() 공개 메소드

testApiAlways_DoesNotSuppressCancellation_WhenHandlerThrows_ForCancelledPromise() 공개 메소드

testApiCancel_ReturnsCancelledPromise_ForCancelledPromise() 공개 메소드

testApiDone_InvokesCancellationHandler_ForCancelledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerCancelsInCancellation_ForCancelledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledEmptyPromise_ForCancelledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerCancelsWithCancelledNonEmptyPromise_ForCancelledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerCancelsWithException_ForCancelledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerCancelsWithNonException_ForCancelledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerThrowsInCancellation_ForCancelledPromise() 공개 메소드

testApiFailure_CallsThenWithValidArguments_ForCancelledPromise() 공개 메소드

testApiIsCancelled_ReturnsFalse_ForCancelledPromise() 공개 메소드

testApiIsFulfilled_ReturnsFalse_ForCancelledPromise() 공개 메소드

testApiIsPending_ReturnsTrue_ForCancelledPromise() 공개 메소드

testApiIsRejected_ReturnsFalse_ForCancelledPromise() 공개 메소드

testApiReject_HasNoEffect_ForCancelledPromise() 공개 메소드

testApiResolve_HasNoEffect_ForCancelledPromise() 공개 메소드

testApiSpread_Returns_FromCancellationHandler_ForCancelledPromise() 공개 메소드

testApiSpread_SpreadsArguments_ForCancelledPromise() 공개 메소드

testApiSuccess_CallsThenWithValidArguments_ForCancelledPromise() 공개 메소드

testApiThen_ForwardsCancellation_ToNextCallback() 공개 메소드

testApiThen_IgnoresReturnPromisedValue_InCancellationCallback() 공개 메소드

testApiThen_IgnoresReturnRejection_InCancellationCallback() 공개 메소드

testApiThen_IgnoresReturnValue_InCancellationCallback() 공개 메소드

testCaseCancelledPromise_IsImmutable() 공개 메소드

testCasePromiseCancelled_InvokesNewlyAddedCallback() 공개 메소드