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

Public Member Functions

 rfc3986UrlProvider ()
 
 testAddsQueryStringIfPresent ()
 
 testAddsToPath ()
 
 testAllowsFalsyUrlParts ()
 
 testBuildsRelativeUrlsWithFalsyParts ()
 
 testCloneCreatesNewInternalObjects ()
 
 testCombinesUrls ($a, $b, $c)
 
 testCombinesUrlsUsingRfc3986 ($relative, $result)
 
 testConvertsSpecialCharsInPathWhenCastingToString ()
 
 testEmptyUrl ()
 
 testHandlesPathsCorrectly ()
 
 testHasGettersAndSetters ()
 
 testNormalizesPaths ($path, $result)
 
 testPortIsDeterminedFromScheme ()
 
 testSetQueryAcceptsArray ()
 
 testSettingHostWithPortModifiesPort ()
 
 testUrlStoresParts ()
 
 testValidatesUrlCanBeParsed ()
 
 testValidatesUrlPartsInFactory ()
 
 urlCombineDataProvider ()
 
 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

See also
Guzzle\Http\Url

Definition at line 11 of file UrlTest.php.

Member Function Documentation

◆ rfc3986UrlProvider()

Guzzle\Tests\Http\UrlTest::rfc3986UrlProvider ( )

◆ testAddsQueryStringIfPresent()

Guzzle\Tests\Http\UrlTest::testAddsQueryStringIfPresent ( )

Definition at line 119 of file UrlTest.php.

References Guzzle\Http\Url\buildUrl().

◆ testAddsToPath()

Guzzle\Tests\Http\UrlTest::testAddsToPath ( )

Definition at line 126 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testAllowsFalsyUrlParts()

Guzzle\Tests\Http\UrlTest::testAllowsFalsyUrlParts ( )

Definition at line 46 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testBuildsRelativeUrlsWithFalsyParts()

Guzzle\Tests\Http\UrlTest::testBuildsRelativeUrlsWithFalsyParts ( )

Definition at line 63 of file UrlTest.php.

References Guzzle\Http\Url\buildUrl().

◆ testCloneCreatesNewInternalObjects()

Guzzle\Tests\Http\UrlTest::testCloneCreatesNewInternalObjects ( )

Definition at line 27 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testCombinesUrls()

Guzzle\Tests\Http\UrlTest::testCombinesUrls (   $a,
  $b,
  $c 
)

@dataProvider urlCombineDataProvider

Definition at line 172 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testCombinesUrlsUsingRfc3986()

Guzzle\Tests\Http\UrlTest::testCombinesUrlsUsingRfc3986 (   $relative,
  $result 
)

@dataProvider rfc3986UrlProvider

Definition at line 297 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testConvertsSpecialCharsInPathWhenCastingToString()

Guzzle\Tests\Http\UrlTest::testConvertsSpecialCharsInPathWhenCastingToString ( )

Definition at line 250 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testEmptyUrl()

Guzzle\Tests\Http\UrlTest::testEmptyUrl ( )

Definition at line 13 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testHandlesPathsCorrectly()

Guzzle\Tests\Http\UrlTest::testHandlesPathsCorrectly ( )

Definition at line 102 of file UrlTest.php.

References Guzzle\Http\Url\buildUrl(), and Guzzle\Http\Url\factory().

◆ testHasGettersAndSetters()

Guzzle\Tests\Http\UrlTest::testHasGettersAndSetters ( )

Definition at line 177 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testNormalizesPaths()

Guzzle\Tests\Http\UrlTest::testNormalizesPaths (   $path,
  $result 
)

@dataProvider urlProvider

Definition at line 227 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testPortIsDeterminedFromScheme()

Guzzle\Tests\Http\UrlTest::testPortIsDeterminedFromScheme ( )

Definition at line 19 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testSetQueryAcceptsArray()

Guzzle\Tests\Http\UrlTest::testSetQueryAcceptsArray ( )

Definition at line 195 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testSettingHostWithPortModifiesPort()

Guzzle\Tests\Http\UrlTest::testSettingHostWithPortModifiesPort ( )

Definition at line 234 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testUrlStoresParts()

Guzzle\Tests\Http\UrlTest::testUrlStoresParts ( )

Definition at line 78 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testValidatesUrlCanBeParsed()

Guzzle\Tests\Http\UrlTest::testValidatesUrlCanBeParsed ( )

@expectedException \Guzzle\Common\Exception\InvalidArgumentException

Definition at line 245 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ testValidatesUrlPartsInFactory()

Guzzle\Tests\Http\UrlTest::testValidatesUrlPartsInFactory ( )

Definition at line 34 of file UrlTest.php.

References Guzzle\Http\Url\factory().

◆ urlCombineDataProvider()

Guzzle\Tests\Http\UrlTest::urlCombineDataProvider ( )

URL combination data provider

Returns
array

Definition at line 147 of file UrlTest.php.

◆ urlProvider()

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

Definition at line 202 of file UrlTest.php.


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