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 CurlFactoryTest

PHPUnit\Framework\TestCase
Extended by GuzzleHttp\Test\Handler\CurlFactoryTest
Namespace: GuzzleHttp\Test\Handler
Covers: \GuzzleHttp\Handler\CurlFactory
Located at tests/Handler/CurlFactoryTest.php
Methods summary
public static
# setUpBeforeClass( )
public static
# tearDownAfterClass( )
public
# testCreatesCurlHandle( )
public
# testSendsHeadRequests( )
public
# testCanAddCustomCurlOptions( )
public
# testCanChangeCurlOptions( )
public
# testValidatesVerify( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

SSL CA bundle not found: /does/not/exist
public
# testCanSetVerifyToFile( )
public
# testCanSetVerifyToDir( )
public
# testAddsVerifyAsTrue( )
public
# testCanDisableVerify( )
public
# testAddsProxy( )
public
# testAddsViaScheme( )
public
# testValidatesSslKey( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

SSL private key not found: /does/not/exist
public
# testAddsSslKey( )
public
# testAddsSslKeyWithPassword( )
public
# testValidatesCert( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

SSL certificate not found: /does/not/exist
public
# testAddsCert( )
public
# testAddsCertWithPassword( )
public
# testValidatesProgress( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

progress client option must be callable
public
# testEmitsDebugInfoToStream( )
public
# testEmitsProgressToFunction( )
public
# testDecodesGzippedResponses( )
public
# testReportsOriginalSizeAndContentEncodingAfterDecoding( )
public
# testDecodesGzippedResponsesWithHeader( )
public
# testDoesNotForceDecode( )
public
# testProtocolVersion( )
public
# testSavesToStream( )
public
# testSavesToGuzzleStream( )
public
# testSavesToFileOnDisk( )
public
# testDoesNotAddMultipleContentLengthHeaders( )
public
# testSendsPostWithNoBodyOrDefaultContentType( )
public
# testFailsWhenCannotRewindRetryAfterNoResponse( )

Expectedexception

\GuzzleHttp\Exception\RequestException

Expectedexceptionmessage

but attempting to rewind the request body failed
public
# testRetriesWhenBodyCanBeRewound( )
public
# testFailsWhenRetryMoreThanThreeTimes( )

Expectedexception

\GuzzleHttp\Exception\RequestException

Expectedexceptionmessage

The cURL request was retried 3 times
public
# testHandles100Continue( )
public
# testCreatesConnectException( )

Expectedexception

\GuzzleHttp\Exception\ConnectException
public
# testAddsTimeouts( )
public
# testAddsStreamingBody( )
public
# testEnsuresDirExistsBeforeThrowingWarning( )

Expectedexception

\RuntimeException

Expectedexceptionmessage

Directory /does/not/exist/so does not exist for sink value of /does/not/exist/so/error.txt
public
# testClosesIdleHandles( )
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
# testRewindsBodyIfPossible( )
public
# testDoesNotRewindUnseekableBody( )
MercadoLibre PHP SDK API documentation generated by ApiGen