PHP Class GuzzleHttp\Tests\Psr7\UriTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: nystudio107/instantanalytics

Public Methods

Method Description
getInvalidUris ( )
getPortTestCases ( )
getValidUris ( )
testAddAndRemoveQueryValues ( )
testAllowsForRelativeUri ( )
testAuthorityWithUserInfoOrPortButWithoutHost ( ) In RFC 8986 the host is optional and the authority can only consist of the user info and port.
testCanConstructFalseyUriParts ( )
testCanParseFalseyUriParts ( )
testCanTransformAndRetrievePartsIndividually ( )
testDefaultReturnValuesOfGetters ( )
testExtendingClassesInstantiates ( )
testFileSchemeWithEmptyHostReconstruction ( )
testFragmentMustHaveCorrectType ( )
testFromParts ( $input )
testHostInHttpUriDefaultsToLocalhost ( )
testHostInHttpsUriDefaultsToLocalhost ( )
testHostIsNormalizedToLowercase ( )
testHostMustHaveCorrectType ( )
testImmutability ( )
testInvalidUrisThrowException ( $invalidUri )
testIsAbsolute ( )
testIsAbsolutePathReference ( )
testIsDefaultPort ( $scheme, $port, $isDefaultPort )
testIsNetworkPathReference ( )
testIsRelativePathReference ( )
testIsSameDocumentReference ( )
testParseUriPortCannotBeZero ( )
testParsesProvidedUri ( )
testPathMustHaveCorrectType ( )
testPathStartingWithTwoSlashes ( )
testPathStartingWithTwoSlashesAndNoAuthorityIsInvalid ( )
testPortCanBeRemoved ( )
testPortIsNullIfStandardPortForScheme ( )
testPortIsReturnedIfSchemeUnknown ( )
testPortMustBeValid ( )
testPortPassedAsStringIsCastedToInt ( )
testQueryMustHaveCorrectType ( )
testRelativePathAndAuhorityIsInvalid ( )
testRelativeUriWithPathBeginngWithColonSegmentIsInvalid ( )
testRelativeUriWithPathHavingColonSegment ( )
testRemoveNonExistingQueryValue ( )
testSchemeIsNormalizedToLowercase ( )
testSchemeMustHaveCorrectType ( )
testStandardPortIsNullIfSchemeChanges ( )
testUriComponentsGetEncodedProperly ( $input, $path, $query, $fragment, $output )
testValidUrisStayValid ( $input )
testWithFragmentEncodesProperly ( )
testWithPathEncodesProperly ( )
testWithPortCannotBeZero ( )
testWithQueryEncodesProperly ( )
testWithQueryValueHandlesEncoding ( )
testWithQueryValueReplacesSameKeys ( )
testWithoutQueryValueHandlesEncoding ( )
testWithoutQueryValueRemovesAllSameKeys ( )
uriComponentsEncodingProvider ( )

Method Details

getInvalidUris() public method

public getInvalidUris ( )

getPortTestCases() public method

public getPortTestCases ( )

getValidUris() public method

public getValidUris ( )

testAddAndRemoveQueryValues() public method

testAllowsForRelativeUri() public method

testAuthorityWithUserInfoOrPortButWithoutHost() public method

In RFC 8986 the host is optional and the authority can only consist of the user info and port.

testCanConstructFalseyUriParts() public method

testCanParseFalseyUriParts() public method

testCanTransformAndRetrievePartsIndividually() public method

testDefaultReturnValuesOfGetters() public method

testExtendingClassesInstantiates() public method

testFileSchemeWithEmptyHostReconstruction() public method

testFragmentMustHaveCorrectType() public method

testFromParts() public method

public testFromParts ( $input )

testHostInHttpUriDefaultsToLocalhost() public method

testHostInHttpsUriDefaultsToLocalhost() public method

testHostIsNormalizedToLowercase() public method

testHostMustHaveCorrectType() public method

testImmutability() public method

public testImmutability ( )

testInvalidUrisThrowException() public method

public testInvalidUrisThrowException ( $invalidUri )

testIsAbsolute() public method

public testIsAbsolute ( )

testIsAbsolutePathReference() public method

testIsDefaultPort() public method

public testIsDefaultPort ( $scheme, $port, $isDefaultPort )

testIsNetworkPathReference() public method

testIsRelativePathReference() public method

testIsSameDocumentReference() public method

testParseUriPortCannotBeZero() public method

testParsesProvidedUri() public method

testPathMustHaveCorrectType() public method

testPathStartingWithTwoSlashes() public method

testPathStartingWithTwoSlashesAndNoAuthorityIsInvalid() public method

testPortCanBeRemoved() public method

testPortIsNullIfStandardPortForScheme() public method

testPortIsReturnedIfSchemeUnknown() public method

testPortMustBeValid() public method

public testPortMustBeValid ( )

testPortPassedAsStringIsCastedToInt() public method

testQueryMustHaveCorrectType() public method

testRelativePathAndAuhorityIsInvalid() public method

testRelativeUriWithPathBeginngWithColonSegmentIsInvalid() public method

testRelativeUriWithPathHavingColonSegment() public method

testRemoveNonExistingQueryValue() public method

testSchemeIsNormalizedToLowercase() public method

testSchemeMustHaveCorrectType() public method

testStandardPortIsNullIfSchemeChanges() public method

testUriComponentsGetEncodedProperly() public method

public testUriComponentsGetEncodedProperly ( $input, $path, $query, $fragment, $output )

testValidUrisStayValid() public method

public testValidUrisStayValid ( $input )

testWithFragmentEncodesProperly() public method

testWithPathEncodesProperly() public method

testWithPortCannotBeZero() public method

testWithQueryEncodesProperly() public method

testWithQueryValueHandlesEncoding() public method

testWithQueryValueReplacesSameKeys() public method

testWithoutQueryValueHandlesEncoding() public method

testWithoutQueryValueRemovesAllSameKeys() public method

uriComponentsEncodingProvider() public method