PHP Class PhlyTest\Http\UriTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: phly/http

Public Methods

Method Description
authorityInfo ( )
invalidConstructorUris ( )
invalidPaths ( )
invalidPorts ( )
invalidQueryStrings ( )
invalidSchemes ( )
mutations ( )
queryStringsForEncoding ( )
standardSchemePortCombinations ( )
testAuthorityOmitsPortForStandardSchemePortCombinations ( $scheme, $port )
testCanEmitOriginFormUrl ( )
testCanSerializeToString ( )
testConstructWithUnsupportedSchemeRaisesAnException ( $scheme )
testConstructorRaisesExceptionForNonStringURI ( $uri )
testConstructorRaisesExceptionForSeriouslyMalformedURI ( )
testConstructorSetsAllProperties ( )
testEmptyPathOnOriginFormRemainsAnEmptyPath ( )
testFragmentIsNotDoubleEncoded ( )
testFragmentIsProperlyEncoded ( )
testMutatingSchemeStripsOffDelimiter ( )
testMutatingWithUnsupportedSchemeRaisesAnException ( $scheme )
testMutationResetsUriStringPropertyInClone ( $method, $value )
testPathDoesNotBecomeDoubleEncoded ( )
testPathIsNotPrefixedWithSlashIfSetWithoutOne ( )
testPathIsProperlyEncoded ( )
testPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString ( )
testQueryIsNotDoubleEncoded ( $query, $expected )
testQueryIsProperlyEncoded ( $query, $expected )
testRetrievingAuthorityReturnsExpectedValues ( $url, $expected )
testSettingEmptyPathOnAbsoluteUriReturnsAnEmptyPath ( )
testStringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath ( )
testStringRepresentationOfOriginFormWithNoPathRetainsEmptyPath ( )
testStripsFragmentPrefixIfPresent ( )
testStripsQueryPrefixIfPresent ( )
testWithFragmentReturnsNewInstanceWithProvidedFragment ( )
testWithHostReturnsNewInstanceWithProvidedHost ( )
testWithPathRaisesExceptionForInvalidPaths ( $path )
testWithPathReturnsNewInstanceWithProvidedPath ( )
testWithPortRaisesExceptionForInvalidPorts ( $port )
testWithPortReturnsNewInstanceWithProvidedPort ( $port )
testWithQueryRaisesExceptionForInvalidQueryStrings ( $query )
testWithQueryReturnsNewInstanceWithProvidedQuery ( )
testWithSchemeReturnsNewInstanceWithNewScheme ( )
testWithUserInfoReturnsNewInstanceWithProvidedUser ( )
testWithUserInfoReturnsNewInstanceWithProvidedUserAndPassword ( )
validPorts ( )

Method Details

authorityInfo() public method

public authorityInfo ( )

invalidConstructorUris() public method

invalidPaths() public method

public invalidPaths ( )

invalidPorts() public method

public invalidPorts ( )

invalidQueryStrings() public method

public invalidQueryStrings ( )

invalidSchemes() public method

public invalidSchemes ( )

mutations() public method

public mutations ( )

queryStringsForEncoding() public method

standardSchemePortCombinations() public method

testAuthorityOmitsPortForStandardSchemePortCombinations() public method

testCanEmitOriginFormUrl() public method

testCanSerializeToString() public method

testConstructWithUnsupportedSchemeRaisesAnException() public method

testConstructorRaisesExceptionForNonStringURI() public method

testConstructorRaisesExceptionForSeriouslyMalformedURI() public method

testConstructorSetsAllProperties() public method

testEmptyPathOnOriginFormRemainsAnEmptyPath() public method

testFragmentIsNotDoubleEncoded() public method

testFragmentIsProperlyEncoded() public method

testMutatingSchemeStripsOffDelimiter() public method

testMutatingWithUnsupportedSchemeRaisesAnException() public method

testMutationResetsUriStringPropertyInClone() public method

public testMutationResetsUriStringPropertyInClone ( $method, $value )

testPathDoesNotBecomeDoubleEncoded() public method

testPathIsNotPrefixedWithSlashIfSetWithoutOne() public method

testPathIsProperlyEncoded() public method

testPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString() public method

testQueryIsNotDoubleEncoded() public method

public testQueryIsNotDoubleEncoded ( $query, $expected )

testQueryIsProperlyEncoded() public method

public testQueryIsProperlyEncoded ( $query, $expected )

testRetrievingAuthorityReturnsExpectedValues() public method

testSettingEmptyPathOnAbsoluteUriReturnsAnEmptyPath() public method

testStringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath() public method

testStringRepresentationOfOriginFormWithNoPathRetainsEmptyPath() public method

testStripsFragmentPrefixIfPresent() public method

testStripsQueryPrefixIfPresent() public method

testWithFragmentReturnsNewInstanceWithProvidedFragment() public method

testWithHostReturnsNewInstanceWithProvidedHost() public method

testWithPathRaisesExceptionForInvalidPaths() public method

testWithPathReturnsNewInstanceWithProvidedPath() public method

testWithPortRaisesExceptionForInvalidPorts() public method

testWithPortReturnsNewInstanceWithProvidedPort() public method

testWithQueryRaisesExceptionForInvalidQueryStrings() public method

testWithQueryReturnsNewInstanceWithProvidedQuery() public method

testWithSchemeReturnsNewInstanceWithNewScheme() public method

testWithUserInfoReturnsNewInstanceWithProvidedUser() public method

testWithUserInfoReturnsNewInstanceWithProvidedUserAndPassword() public method

validPorts() public method

public validPorts ( )