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

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

공개 메소드들

메소드 설명
createDeferred ( ) : Kraken\Promise\DeferredInterface
createPromiseMock ( string[] $methods = [] ) : Kraken\Promise\PromiseInterface | PHPUnit_Framework_MockObject_MockObject
getTest ( ) : TUnit
testApiAbort_CallsThenWithValidArguments_ForFulfilledPromise ( )
testApiAlways_DoesNotSuppressValue_ForFulfilledPromise ( )
testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsNonPromise_ForFulfilledPromise ( )
testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsPromise_ForFulfilledPromise ( )
testApiAlways_RejectsPromise_WhenHandlerRejects_ForFulfilledPromise ( )
testApiAlways_RejectsPromise_WhenHandlerThrows_ForFulfilledPromise ( )
testApiCancel_HasNoEffect_ForFulfilledPromise ( )
testApiCancel_ReturnsFulfilledPromise_ForFulfilledPromise ( )
testApiDone_InvokesFulfillmentHandler_ForFulfilledPromise ( )
testApiDone_ThrowsException_WhenHandlerRejectsInFulfillment_ForFulfilledPromise ( )
testApiDone_ThrowsException_WhenHandlerThrowsInFulfillment_ForFulfilledPromise ( )
testApiFailure_CallsThenWithValidArguments_ForFulfilledPromise ( )
testApiFailure_DoesNotInvokeRejectionHandler_ForFulfilledPromise ( )
testApiIsCancelled_ReturnsFalse_ForFulfilledPromise ( )
testApiIsFulfilled_ReturnsFalse_ForFulfilledPromise ( )
testApiIsPending_ReturnsTrue_ForFulfilledPromise ( )
testApiIsRejected_ReturnsFalse_ForFulfilledPromise ( )
testApiSpread_Returns_FromFulfillmentHandler_ForFullfilledPromise ( )
testApiSpread_SpreadsArguments_ForFullfilledPromise ( )
testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise ( )
testApiThen_ForwardsPromisedValue_ToNextCallback ( )
testApiThen_ForwardsRejection_ToNextCallback ( )
testApiThen_ForwardsValue_ToNextCallback ( )
testApiThen_ForwardsValue_WhenCallbackIsNull ( )
testApiThen_SwitchesFromCallbacksToErrbacks_WhenCallbackThrows ( )
testCasePromiseFulfilled_InvokesNewlyAddedCallback ( )
testCasePromiseFulfilled_IsImmutable ( )

메소드 상세

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_ForFulfilledPromise() 공개 메소드

testApiAlways_DoesNotSuppressValue_ForFulfilledPromise() 공개 메소드

testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsNonPromise_ForFulfilledPromise() 공개 메소드

testApiAlways_DoesNotSuppressValue_WhenHandlerReturnsPromise_ForFulfilledPromise() 공개 메소드

testApiAlways_RejectsPromise_WhenHandlerRejects_ForFulfilledPromise() 공개 메소드

testApiAlways_RejectsPromise_WhenHandlerThrows_ForFulfilledPromise() 공개 메소드

testApiCancel_HasNoEffect_ForFulfilledPromise() 공개 메소드

testApiCancel_ReturnsFulfilledPromise_ForFulfilledPromise() 공개 메소드

testApiDone_InvokesFulfillmentHandler_ForFulfilledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerRejectsInFulfillment_ForFulfilledPromise() 공개 메소드

testApiDone_ThrowsException_WhenHandlerThrowsInFulfillment_ForFulfilledPromise() 공개 메소드

testApiFailure_CallsThenWithValidArguments_ForFulfilledPromise() 공개 메소드

testApiFailure_DoesNotInvokeRejectionHandler_ForFulfilledPromise() 공개 메소드

testApiIsCancelled_ReturnsFalse_ForFulfilledPromise() 공개 메소드

testApiIsFulfilled_ReturnsFalse_ForFulfilledPromise() 공개 메소드

testApiIsPending_ReturnsTrue_ForFulfilledPromise() 공개 메소드

testApiIsRejected_ReturnsFalse_ForFulfilledPromise() 공개 메소드

testApiSpread_Returns_FromFulfillmentHandler_ForFullfilledPromise() 공개 메소드

testApiSpread_SpreadsArguments_ForFullfilledPromise() 공개 메소드

testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise() 공개 메소드

testApiThen_ForwardsPromisedValue_ToNextCallback() 공개 메소드

testApiThen_ForwardsRejection_ToNextCallback() 공개 메소드

testApiThen_ForwardsValue_ToNextCallback() 공개 메소드

testApiThen_ForwardsValue_WhenCallbackIsNull() 공개 메소드

testApiThen_SwitchesFromCallbacksToErrbacks_WhenCallbackThrows() 공개 메소드

testCasePromiseFulfilled_InvokesNewlyAddedCallback() 공개 메소드

testCasePromiseFulfilled_IsImmutable() 공개 메소드