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

Public Member Functions

 testAcceptsConfig ()
 
 testAllowsConfigsToBeChangedAndInjectedInBaseUrl ()
 
 testAllowsCustomCurlMultiObjects ()
 
 testAllowsCustomVariablesWhenExpandingTemplates ()
 
 testAllowsDefaultHeaders ()
 
 testAllowsEmptyBaseUrl ()
 
 testAllowsUriTemplateInjection ()
 
 testBuildsRelativeUrls ($baseUrl, $url, $result)
 
 testCanSetDefaultRequestOptions ()
 
 testCanSetRelativeUrlStartingWithHttp ()
 
 testCanSetSetOptionsOnRequests ()
 
 testCanUseCollectionAsConfig ()
 
 testClientAddsCurlOptionsToRequests ()
 
 testClientAddsParamsToRequests ()
 
 testClientAllowsFineGrainedSslControlButIsSecureByDefault ()
 
 testClientAllowsSettingSpecificSslCaInfo ()
 
 testClientAllowsUnsafeOperationIfRequested ()
 
 testClientAttachersObserversToRequests ()
 
 testClientHasHelperMethodsForCreatingRequests ()
 
 testClientInjectsConfigsIntoUrls ()
 
 testClientPreventsInadvertentInsecureVerifyHostSetting ()
 
 testClientPreventsInvalidVerifyPeerSetting ()
 
 testClientReturnsValidBaseUrls ()
 
 testClientSendsMultipleRequests ()
 
 testClientSendsSingleRequest ()
 
 testClientThrowsExceptionForMultipleRequests ()
 
 testClientThrowsExceptionForSingleRequest ()
 
 testConfigSettingsControlSslConfiguration ()
 
 testConstructorCanAcceptConfig ()
 
 testCreatesRequestsWithDefaultValues ()
 
 testDescribesEvents ()
 
 testDontReuseCurlMulti ()
 
 testExpandsUriTemplatesUsingConfig ()
 
 testGetDefaultUserAgent ()
 
 testHasDefaultOptionsHelperMethods ()
 
 testHeadCanUseOptions ()
 
 testOverwritesUserAgent ()
 
 testQueryStringsAreNotDoubleEncoded ()
 
 testQueryStringsAreNotDoubleEncodedUsingAbsolutePaths ()
 
 testThrowsExceptionForInvalidCertificate ()
 
 testUriArrayAllowsCustomTemplateVariables ()
 
 testUsesDefaultUserAgent ()
 
 urlProvider ()
 
- 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

@group server

See also
Guzzle\Http\Client

Definition at line 19 of file Http/ClientTest.php.

Member Function Documentation

◆ testAcceptsConfig()

Guzzle\Tests\Http\ClientTest::testAcceptsConfig ( )

Definition at line 33 of file Http/ClientTest.php.

◆ testAllowsConfigsToBeChangedAndInjectedInBaseUrl()

Guzzle\Tests\Http\ClientTest::testAllowsConfigsToBeChangedAndInjectedInBaseUrl ( )

Definition at line 262 of file Http/ClientTest.php.

◆ testAllowsCustomCurlMultiObjects()

Guzzle\Tests\Http\ClientTest::testAllowsCustomCurlMultiObjects ( )

Definition at line 339 of file Http/ClientTest.php.

◆ testAllowsCustomVariablesWhenExpandingTemplates()

Guzzle\Tests\Http\ClientTest::testAllowsCustomVariablesWhenExpandingTemplates ( )

Definition at line 461 of file Http/ClientTest.php.

◆ testAllowsDefaultHeaders()

Guzzle\Tests\Http\ClientTest::testAllowsDefaultHeaders ( )

Definition at line 484 of file Http/ClientTest.php.

References Guzzle\Common\Version\$emitWarnings.

◆ testAllowsEmptyBaseUrl()

Guzzle\Tests\Http\ClientTest::testAllowsEmptyBaseUrl ( )

Definition at line 330 of file Http/ClientTest.php.

◆ testAllowsUriTemplateInjection()

Guzzle\Tests\Http\ClientTest::testAllowsUriTemplateInjection ( )

Definition at line 450 of file Http/ClientTest.php.

◆ testBuildsRelativeUrls()

Guzzle\Tests\Http\ClientTest::testBuildsRelativeUrls (   $baseUrl,
  $url,
  $result 
)

@dataProvider urlProvider

Definition at line 256 of file Http/ClientTest.php.

◆ testCanSetDefaultRequestOptions()

Guzzle\Tests\Http\ClientTest::testCanSetDefaultRequestOptions ( )

Definition at line 542 of file Http/ClientTest.php.

◆ testCanSetRelativeUrlStartingWithHttp()

Guzzle\Tests\Http\ClientTest::testCanSetRelativeUrlStartingWithHttp ( )

Definition at line 593 of file Http/ClientTest.php.

◆ testCanSetSetOptionsOnRequests()

Guzzle\Tests\Http\ClientTest::testCanSetSetOptionsOnRequests ( )

Definition at line 558 of file Http/ClientTest.php.

◆ testCanUseCollectionAsConfig()

Guzzle\Tests\Http\ClientTest::testCanUseCollectionAsConfig ( )

Definition at line 65 of file Http/ClientTest.php.

◆ testClientAddsCurlOptionsToRequests()

Guzzle\Tests\Http\ClientTest::testClientAddsCurlOptionsToRequests ( )

Definition at line 111 of file Http/ClientTest.php.

◆ testClientAddsParamsToRequests()

Guzzle\Tests\Http\ClientTest::testClientAddsParamsToRequests ( )

Definition at line 221 of file Http/ClientTest.php.

References Guzzle\Common\Version\$emitWarnings.

◆ testClientAllowsFineGrainedSslControlButIsSecureByDefault()

Guzzle\Tests\Http\ClientTest::testClientAllowsFineGrainedSslControlButIsSecureByDefault ( )

Definition at line 131 of file Http/ClientTest.php.

◆ testClientAllowsSettingSpecificSslCaInfo()

Guzzle\Tests\Http\ClientTest::testClientAllowsSettingSpecificSslCaInfo ( )

Definition at line 184 of file Http/ClientTest.php.

◆ testClientAllowsUnsafeOperationIfRequested()

Guzzle\Tests\Http\ClientTest::testClientAllowsUnsafeOperationIfRequested ( )

Definition at line 161 of file Http/ClientTest.php.

◆ testClientAttachersObserversToRequests()

Guzzle\Tests\Http\ClientTest::testClientAttachersObserversToRequests ( )

◆ testClientHasHelperMethodsForCreatingRequests()

Guzzle\Tests\Http\ClientTest::testClientHasHelperMethodsForCreatingRequests ( )

Definition at line 303 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testClientInjectsConfigsIntoUrls()

Guzzle\Tests\Http\ClientTest::testClientInjectsConfigsIntoUrls ( )

Definition at line 321 of file Http/ClientTest.php.

◆ testClientPreventsInadvertentInsecureVerifyHostSetting()

Guzzle\Tests\Http\ClientTest::testClientPreventsInadvertentInsecureVerifyHostSetting ( )

@expectedException Guzzle\Common\Exception\InvalidArgumentException

Definition at line 200 of file Http/ClientTest.php.

◆ testClientPreventsInvalidVerifyPeerSetting()

Guzzle\Tests\Http\ClientTest::testClientPreventsInvalidVerifyPeerSetting ( )

@expectedException Guzzle\Common\Exception\InvalidArgumentException

Definition at line 212 of file Http/ClientTest.php.

◆ testClientReturnsValidBaseUrls()

Guzzle\Tests\Http\ClientTest::testClientReturnsValidBaseUrls ( )

Definition at line 100 of file Http/ClientTest.php.

◆ testClientSendsMultipleRequests()

Guzzle\Tests\Http\ClientTest::testClientSendsMultipleRequests ( )

Definition at line 357 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testClientSendsSingleRequest()

Guzzle\Tests\Http\ClientTest::testClientSendsSingleRequest ( )

Definition at line 387 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testClientThrowsExceptionForMultipleRequests()

Guzzle\Tests\Http\ClientTest::testClientThrowsExceptionForMultipleRequests ( )

@expectedException \Guzzle\Common\Exception\ExceptionCollection

Definition at line 413 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testClientThrowsExceptionForSingleRequest()

Guzzle\Tests\Http\ClientTest::testClientThrowsExceptionForSingleRequest ( )

@expectedException \Guzzle\Http\Exception\BadResponseException

Definition at line 400 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testConfigSettingsControlSslConfiguration()

Guzzle\Tests\Http\ClientTest::testConfigSettingsControlSslConfiguration ( )

Definition at line 148 of file Http/ClientTest.php.

◆ testConstructorCanAcceptConfig()

Guzzle\Tests\Http\ClientTest::testConstructorCanAcceptConfig ( )

Definition at line 57 of file Http/ClientTest.php.

◆ testCreatesRequestsWithDefaultValues()

Guzzle\Tests\Http\ClientTest::testCreatesRequestsWithDefaultValues ( )

Definition at line 274 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().

◆ testDescribesEvents()

Guzzle\Tests\Http\ClientTest::testDescribesEvents ( )

Definition at line 52 of file Http/ClientTest.php.

References Guzzle\Http\Client\getAllEvents().

◆ testDontReuseCurlMulti()

Guzzle\Tests\Http\ClientTest::testDontReuseCurlMulti ( )

Definition at line 509 of file Http/ClientTest.php.

◆ testExpandsUriTemplatesUsingConfig()

Guzzle\Tests\Http\ClientTest::testExpandsUriTemplatesUsingConfig ( )

Definition at line 76 of file Http/ClientTest.php.

◆ testGetDefaultUserAgent()

Guzzle\Tests\Http\ClientTest::testGetDefaultUserAgent ( )

Definition at line 516 of file Http/ClientTest.php.

References Guzzle\Common\Version\VERSION.

◆ testHasDefaultOptionsHelperMethods()

Guzzle\Tests\Http\ClientTest::testHasDefaultOptionsHelperMethods ( )

Definition at line 567 of file Http/ClientTest.php.

◆ testHeadCanUseOptions()

Guzzle\Tests\Http\ClientTest::testHeadCanUseOptions ( )

Definition at line 586 of file Http/ClientTest.php.

◆ testOverwritesUserAgent()

Guzzle\Tests\Http\ClientTest::testOverwritesUserAgent ( )

Definition at line 528 of file Http/ClientTest.php.

◆ testQueryStringsAreNotDoubleEncoded()

Guzzle\Tests\Http\ClientTest::testQueryStringsAreNotDoubleEncoded ( )

Definition at line 423 of file Http/ClientTest.php.

◆ testQueryStringsAreNotDoubleEncodedUsingAbsolutePaths()

Guzzle\Tests\Http\ClientTest::testQueryStringsAreNotDoubleEncodedUsingAbsolutePaths ( )

Definition at line 439 of file Http/ClientTest.php.

◆ testThrowsExceptionForInvalidCertificate()

Guzzle\Tests\Http\ClientTest::testThrowsExceptionForInvalidCertificate ( )

@expectedException \Guzzle\Common\Exception\RuntimeException

Definition at line 178 of file Http/ClientTest.php.

◆ testUriArrayAllowsCustomTemplateVariables()

Guzzle\Tests\Http\ClientTest::testUriArrayAllowsCustomTemplateVariables ( )

Definition at line 470 of file Http/ClientTest.php.

◆ testUsesDefaultUserAgent()

Guzzle\Tests\Http\ClientTest::testUsesDefaultUserAgent ( )

Definition at line 535 of file Http/ClientTest.php.

◆ urlProvider()

Guzzle\Tests\Http\ClientTest::urlProvider ( )

Definition at line 237 of file Http/ClientTest.php.

References Guzzle\Tests\GuzzleTestCase\getServer().


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