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

  • CurlFactoryTest
  • CurlHandlerTest
  • EasyHandleTest
  • MockHandlerTest
  • ProxyTest
  • StreamHandlerTest
  • Overview
  • Namespace
  • Class
  • Download

Class MockHandlerTest

PHPUnit\Framework\TestCase
Extended by GuzzleHttp\Test\Handler\MockHandlerTest
Namespace: GuzzleHttp\Test\Handler
Covers: \GuzzleHttp\Handler\MockHandler
Located at tests/Handler/MockHandlerTest.php
Methods summary
public
# testReturnsMockResponse( )
public
# testIsCountable( )
public
# testEmptyHandlerIsCountable( )
public
# testEnsuresEachAppendIsValid( )

Expectedexception

\InvalidArgumentException
public
# testCanQueueExceptions( )
public
# testCanGetLastRequestAndOptions( )
public
# testSinkFilename( )
public
# testSinkResource( )
public
# testSinkStream( )
public
# testCanEnqueueCallables( )
public
# testEnsuresOnHeadersIsCallable( )

Expectedexception

\InvalidArgumentException
public
# testRejectsPromiseWhenOnHeadersFails( )

Expectedexception

\GuzzleHttp\Exception\RequestException

Expectedexceptionmessage

An error was encountered during the on_headers event
test
public
# testInvokesOnFulfilled( )
public
# testInvokesOnRejected( )
public
# testThrowsWhenNoMoreResponses( )

Expectedexception

\OutOfBoundsException
public
# testCanCreateWithDefaultMiddleware( )

Expectedexception

\GuzzleHttp\Exception\BadResponseException
public
# testInvokesOnStatsFunctionForResponse( )
public
# testInvokesOnStatsFunctionForError( )
MercadoLibre PHP SDK API documentation generated by ApiGen