Open Journal Systems  3.3.0
Guzzle\Tests\Http\Curl\CurlHandleTest Class Reference
Inheritance diagram for Guzzle\Tests\Http\Curl\CurlHandleTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 dataProvider ()
 
 provideCurlConfig ()
 
 requestMethodProvider ()
 
 setUp ()
 
 testAccountsForMissingStdErr ()
 
 testAddsCustomCurlOptions ()
 
 testAllowsCurloptEncodingToBeSet ()
 
 testAllowsWireTransferInfoToBeEnabled ()
 
 testCanSendBodyAsString ()
 
 testCanSendPostBodyAsString ()
 
 testConstructorExpectsCurlResource ()
 
 testConstructorExpectsProperOptions ()
 
 testConstructorInitializesObject ()
 
 testCurlConfigurationOptionsAreSet ()
 
 testDeterminesIfResourceIsAvailable ()
 
 testEnsuresRequestsHaveResponsesWhenUpdatingFromTransfer ()
 
 testFactoryCreatesCurlBasedOnRequest ($method, $url, $headers, $body, $options, $expectedHeaders=null)
 
 testFactoryUsesSpecifiedProtocol ()
 
 testGetInfoWithoutDebugMode ()
 
 testParseCurlConfigConvertsStringKeysToConstantKeys ($options, $expected)
 
 testSeeksToBeginningOfStreamWhenSending ()
 
 testSendsExpectHeaderWhenSizeIsGreaterThanCutoff ()
 
 testSendsPostFieldsForNonPostRequests ()
 
 testSendsPostFilesForNonPostRequests ()
 
 testSendsPostRequestsWithFields ()
 
 testSendsPostRequestsWithFiles ()
 
 testSendsPostUploadsWithContentDispositionHeaders ()
 
 testSendsRequestsWithNoBodyUsingContentLengthZero ($method)
 
 testSetsCurloptEncodingWhenAcceptEncodingHeaderIsSet ()
 
 testStoresCurlErrorNumber ()
 
 testStoresStdErr ()
 
 testUploadsPutData ()
 
 testUploadsPutDataUsingChunkedEncodingWhenForced ()
 
 testUploadsPutDataUsingChunkedEncodingWhenLengthCannotBeDetermined ()
 
 testWrapsCurlOptions ()
 
 testWrapsErrorsAndInfo ()
 
- Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 addMockedRequest (RequestInterface $request)
 
 assertContainsIns ($needle, $haystack, $message=null)
 
 compareHeaders ($filteredHeaders, $actualHeaders)
 
 getMockedRequests ()
 
 getMockResponse ($path)
 
 getWildcardObserver (HasDispatcherInterface $hasDispatcher)
 
 setMockResponse (Client $client, $paths)
 

Data Fields

 $requestHandle
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 

Protected Member Functions

 updateForHandle (RequestInterface $request)
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

@group server

See also
Guzzle\Http\Curl\CurlHandle

Definition at line 18 of file CurlHandleTest.php.

Member Function Documentation

◆ dataProvider()

Guzzle\Tests\Http\Curl\CurlHandleTest::dataProvider ( )

Data provider for factory tests

Returns
array

Definition at line 187 of file CurlHandleTest.php.

References Guzzle\Http\EntityBody\factory().

◆ provideCurlConfig()

Guzzle\Tests\Http\Curl\CurlHandleTest::provideCurlConfig ( )

Data provider for curl configurations

Returns
array

Definition at line 813 of file CurlHandleTest.php.

◆ requestMethodProvider()

Guzzle\Tests\Http\Curl\CurlHandleTest::requestMethodProvider ( )

Definition at line 779 of file CurlHandleTest.php.

◆ setUp()

Guzzle\Tests\Http\Curl\CurlHandleTest::setUp ( )

Definition at line 32 of file CurlHandleTest.php.

◆ testAccountsForMissingStdErr()

Guzzle\Tests\Http\Curl\CurlHandleTest::testAccountsForMissingStdErr ( )

Definition at line 98 of file CurlHandleTest.php.

◆ testAddsCustomCurlOptions()

Guzzle\Tests\Http\Curl\CurlHandleTest::testAddsCustomCurlOptions ( )

◆ testAllowsCurloptEncodingToBeSet()

Guzzle\Tests\Http\Curl\CurlHandleTest::testAllowsCurloptEncodingToBeSet ( )

◆ testAllowsWireTransferInfoToBeEnabled()

Guzzle\Tests\Http\Curl\CurlHandleTest::testAllowsWireTransferInfoToBeEnabled ( )

◆ testCanSendBodyAsString()

Guzzle\Tests\Http\Curl\CurlHandleTest::testCanSendBodyAsString ( )

Definition at line 710 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testCanSendPostBodyAsString()

Guzzle\Tests\Http\Curl\CurlHandleTest::testCanSendPostBodyAsString ( )

Definition at line 725 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testConstructorExpectsCurlResource()

Guzzle\Tests\Http\Curl\CurlHandleTest::testConstructorExpectsCurlResource ( )

@expectedException \InvalidArgumentException

Definition at line 40 of file CurlHandleTest.php.

◆ testConstructorExpectsProperOptions()

Guzzle\Tests\Http\Curl\CurlHandleTest::testConstructorExpectsProperOptions ( )

Definition at line 45 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testConstructorInitializesObject()

Guzzle\Tests\Http\Curl\CurlHandleTest::testConstructorInitializesObject ( )

Definition at line 65 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testCurlConfigurationOptionsAreSet()

Guzzle\Tests\Http\Curl\CurlHandleTest::testCurlConfigurationOptionsAreSet ( )

◆ testDeterminesIfResourceIsAvailable()

Guzzle\Tests\Http\Curl\CurlHandleTest::testDeterminesIfResourceIsAvailable ( )

Definition at line 107 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testEnsuresRequestsHaveResponsesWhenUpdatingFromTransfer()

Guzzle\Tests\Http\Curl\CurlHandleTest::testEnsuresRequestsHaveResponsesWhenUpdatingFromTransfer ( )

◆ testFactoryCreatesCurlBasedOnRequest()

Guzzle\Tests\Http\Curl\CurlHandleTest::testFactoryCreatesCurlBasedOnRequest (   $method,
  $url,
  $headers,
  $body,
  $options,
  $expectedHeaders = null 
)

◆ testFactoryUsesSpecifiedProtocol()

Guzzle\Tests\Http\Curl\CurlHandleTest::testFactoryUsesSpecifiedProtocol ( )

◆ testGetInfoWithoutDebugMode()

Guzzle\Tests\Http\Curl\CurlHandleTest::testGetInfoWithoutDebugMode ( )

Definition at line 158 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testParseCurlConfigConvertsStringKeysToConstantKeys()

Guzzle\Tests\Http\Curl\CurlHandleTest::testParseCurlConfigConvertsStringKeysToConstantKeys (   $options,
  $expected 
)

@dataProvider provideCurlConfig

Definition at line 802 of file CurlHandleTest.php.

References Guzzle\Http\Curl\CurlHandle\parseCurlConfig().

◆ testSeeksToBeginningOfStreamWhenSending()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSeeksToBeginningOfStreamWhenSending ( )

Definition at line 840 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testSendsExpectHeaderWhenSizeIsGreaterThanCutoff()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsExpectHeaderWhenSizeIsGreaterThanCutoff ( )

◆ testSendsPostFieldsForNonPostRequests()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsPostFieldsForNonPostRequests ( )

Definition at line 909 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testSendsPostFilesForNonPostRequests()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsPostFilesForNonPostRequests ( )

Definition at line 931 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testSendsPostRequestsWithFields()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsPostRequestsWithFields ( )

◆ testSendsPostRequestsWithFiles()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsPostRequestsWithFiles ( )

◆ testSendsPostUploadsWithContentDispositionHeaders()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsPostUploadsWithContentDispositionHeaders ( )

Definition at line 757 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testSendsRequestsWithNoBodyUsingContentLengthZero()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSendsRequestsWithNoBodyUsingContentLengthZero (   $method)

@dataProvider requestMethodProvider

Definition at line 787 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testSetsCurloptEncodingWhenAcceptEncodingHeaderIsSet()

Guzzle\Tests\Http\Curl\CurlHandleTest::testSetsCurloptEncodingWhenAcceptEncodingHeaderIsSet ( )

◆ testStoresCurlErrorNumber()

Guzzle\Tests\Http\Curl\CurlHandleTest::testStoresCurlErrorNumber ( )

Definition at line 90 of file CurlHandleTest.php.

◆ testStoresStdErr()

Guzzle\Tests\Http\Curl\CurlHandleTest::testStoresStdErr ( )

◆ testUploadsPutData()

Guzzle\Tests\Http\Curl\CurlHandleTest::testUploadsPutData ( )

◆ testUploadsPutDataUsingChunkedEncodingWhenForced()

Guzzle\Tests\Http\Curl\CurlHandleTest::testUploadsPutDataUsingChunkedEncodingWhenForced ( )

Definition at line 618 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testUploadsPutDataUsingChunkedEncodingWhenLengthCannotBeDetermined()

Guzzle\Tests\Http\Curl\CurlHandleTest::testUploadsPutDataUsingChunkedEncodingWhenLengthCannotBeDetermined ( )

◆ testWrapsCurlOptions()

Guzzle\Tests\Http\Curl\CurlHandleTest::testWrapsCurlOptions ( )

Definition at line 170 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testWrapsErrorsAndInfo()

Guzzle\Tests\Http\Curl\CurlHandleTest::testWrapsErrorsAndInfo ( )

Definition at line 122 of file CurlHandleTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ updateForHandle()

Field Documentation

◆ $requestHandle

Guzzle\Tests\Http\Curl\CurlHandleTest::$requestHandle

Definition at line 20 of file CurlHandleTest.php.


The documentation for this class was generated from the following file: