Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • AggregateExceptionTest
  • CoroutineTest
  • EachPromiseTest
  • FunctionsTest
  • NotPromiseInstance
  • PromiseTest
  • RejectedPromiseTest
  • RejectionExceptionTest
  • Thennable
  • Thing1
  • Thing2
  • Overview
  • Namespace
  • Class
  • Download

Class PromiseTest

PHPUnit_Framework_TestCase
Extended by GuzzleHttp\Promise\Tests\PromiseTest
Namespace: GuzzleHttp\Promise\Tests
Covers: GuzzleHttp\Promise\Promise
Located at tests/PromiseTest.php
Methods summary
public
# testCannotResolveNonPendingPromise( )

Expectedexception

\LogicException

Expectedexceptionmessage

The promise is already fulfilled
public
# testCanResolveWithSameValue( )
public
# testCannotRejectNonPendingPromise( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot change a fulfilled promise to rejected
public
# testCanRejectWithSameValue( )
public
# testCannotRejectResolveWithSameValue( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot change a fulfilled promise to rejected
public
# testInvokesWaitFunction( )
public
# testRejectsAndThrowsWhenWaitFailsToResolve( )

Expectedexception

\GuzzleHttp\Promise\RejectionException
public
# testThrowsWhenUnwrapIsRejectedWithNonException( )

Expectedexception

\GuzzleHttp\Promise\RejectionException

Expectedexceptionmessage

The promise was rejected with reason: foo
public
# testThrowsWhenUnwrapIsRejectedWithException( )

Expectedexception

\UnexpectedValueException

Expectedexceptionmessage

foo
public
# testDoesNotUnwrapExceptionsWhenDisabled( )
public
# testRejectsSelfWhenWaitThrows( )
public
# testWaitsOnNestedPromises( )
public
# testThrowsWhenWaitingOnPromiseWithNoWaitFunction( )

Expectedexception

\GuzzleHttp\Promise\RejectionException
public
# testThrowsWaitExceptionAfterPromiseIsResolved( )
public
# testGetsActualWaitValueFromThen( )
public
# testWaitBehaviorIsBasedOnLastPromiseInChain( )
public
# testWaitsOnAPromiseChainEvenWhenNotUnwrapped( )
public
# testCannotCancelNonPending( )
public
# testCancelsPromiseWhenNoCancelFunction( )

Expectedexception

\GuzzleHttp\Promise\CancellationException
public
# testCancelsPromiseWithCancelFunction( )
public
# testCancelsUppermostPendingPromise( )
public
# testCancelsChildPromises( )
public
# testRejectsPromiseWhenCancelFails( )
public
# testCreatesPromiseWhenFulfilledAfterThen( )
public
# testCreatesPromiseWhenFulfilledBeforeThen( )
public
# testCreatesPromiseWhenFulfilledWithNoCallback( )
public
# testCreatesPromiseWhenRejectedAfterThen( )
public
# testCreatesPromiseWhenRejectedBeforeThen( )
public
# testCreatesPromiseWhenRejectedWithNoCallback( )
public
# testInvokesWaitFnsForThens( )
public
# testStacksThenWaitFunctions( )
public
# testForwardsFulfilledDownChainBetweenGaps( )
public
# testForwardsRejectedPromisesDownChainBetweenGaps( )
public
# testForwardsThrownPromisesDownChainBetweenGaps( )
public
# testForwardsReturnedRejectedPromisesDownChainBetweenGaps( )
public
# testForwardsHandlersToNextPromise( )
public
# testRemovesReferenceFromChildWhenParentWaitedUpon( )
public
# testForwardsHandlersWhenFulfilledPromiseIsReturned( )
public
# testForwardsHandlersWhenRejectedPromiseIsReturned( )
public
# testDoesNotForwardRejectedPromise( )
public
# testRecursivelyForwardsWhenOnlyThennable( )
public
# testRecursivelyForwardsWhenNotInstanceOfPromise( )
public
# testCannotResolveWithSelf( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot fulfill or reject a promise with itself
public
# testCannotRejectWithSelf( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot fulfill or reject a promise with itself
public
# testDoesNotBlowStackWhenWaitingOnNestedThens( )
public
# testOtherwiseIsSugarForRejections( )
MercadoLibre PHP SDK API documentation generated by ApiGen