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 StreamHandlerTest

PHPUnit\Framework\TestCase
Extended by GuzzleHttp\Test\Handler\StreamHandlerTest
Namespace: GuzzleHttp\Test\Handler
Covers: \GuzzleHttp\Handler\StreamHandler
Located at tests/Handler/StreamHandlerTest.php
Methods summary
public
# testReturnsResponseForSuccessfulRequest( )
public
# testAddsErrorToResponse( )

Expectedexception

\GuzzleHttp\Exception\RequestException
public
# testStreamAttributeKeepsStreamOpen( )
public
# testDrainsResponseIntoTempStream( )
public
# testDrainsResponseIntoSaveToBody( )
public
# testDrainsResponseIntoSaveToBodyAtPath( )
public
# testDrainsResponseIntoSaveToBodyAtNonExistentPath( )
public
# testDrainsResponseAndReadsOnlyContentLengthBytes( )
public
# testDoesNotDrainWhenHeadRequest( )
public
# testAutomaticallyDecompressGzip( )
public
# testReportsOriginalSizeAndContentEncodingAfterDecoding( )
public
# testDoesNotForceGzipDecode( )
public
# testProtocolVersion( )
protected
# getSendResult( array $opts )
public
# testAddsProxy( )

Expectedexception

\GuzzleHttp\Exception\ConnectException

Expectedexceptionmessage

Connection refused
public
# testAddsProxyByProtocol( )
public
# testAddsProxyButHonorsNoProxy( )
public
# testAddsTimeout( )
public
# testVerifiesVerifyIsValidIfPath( )

Expectedexception

\GuzzleHttp\Exception\RequestException

Expectedexceptionmessage

SSL CA bundle not found: /does/not/exist
public
# testVerifyCanBeDisabled( )
public
# testVerifiesCertIfValidPath( )

Expectedexception

\GuzzleHttp\Exception\RequestException

Expectedexceptionmessage

SSL certificate not found: /does/not/exist
public
# testVerifyCanBeSetToPath( )
public
# testUsesSystemDefaultBundle( )
public
# testEnsuresVerifyOptionIsValid( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Invalid verify request option
public
# testCanSetPasswordWhenSettingCert( )
public
# testDebugAttributeWritesToStream( )
public
# testDebugAttributeWritesStreamInfoToBuffer( )
public
# testEmitsProgressInformation( )
public
# testEmitsProgressInformationAndDebugInformation( )
public
# testPerformsShallowMergeOfCustomContextOptions( )
public
# testEnsuresThatStreamContextIsAnArray( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

stream_context must be an array
public
# testDoesNotAddContentTypeByDefault( )
public
# testAddsContentLengthByDefault( )
public
# testAddsContentLengthEvenWhenEmpty( )
public
# testSupports100Continue( )
public
# testDoesSleep( )
public
# testEnsuresOnHeadersIsCallable( )

Expectedexception

\InvalidArgumentException
public
# testRejectsPromiseWhenOnHeadersFails( )

Expectedexception

\GuzzleHttp\Exception\RequestException

Expectedexceptionmessage

An error was encountered during the on_headers event
test
public
# testSuccessfullyCallsOnHeadersBeforeWritingToSink( )
public
# testInvokesOnStatsOnSuccess( )
public
# testInvokesOnStatsOnError( )
public
# testStreamIgnoresZeroTimeout( )
public
# testDrainsResponseAndReadsAllContentWhenContentLengthIsZero( )
public
# testHonorsReadTimeout( )
MercadoLibre PHP SDK API documentation generated by ApiGen