PHP Class PhlyTest\Http\UriTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: phly/http

Méthodes publiques

Méthode 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 méthode

public authorityInfo ( )

invalidConstructorUris() public méthode

invalidPaths() public méthode

public invalidPaths ( )

invalidPorts() public méthode

public invalidPorts ( )

invalidQueryStrings() public méthode

public invalidQueryStrings ( )

invalidSchemes() public méthode

public invalidSchemes ( )

mutations() public méthode

public mutations ( )

queryStringsForEncoding() public méthode

standardSchemePortCombinations() public méthode

testAuthorityOmitsPortForStandardSchemePortCombinations() public méthode

testCanEmitOriginFormUrl() public méthode

testCanSerializeToString() public méthode

testConstructWithUnsupportedSchemeRaisesAnException() public méthode

testConstructorRaisesExceptionForNonStringURI() public méthode

testConstructorRaisesExceptionForSeriouslyMalformedURI() public méthode

testConstructorSetsAllProperties() public méthode

testEmptyPathOnOriginFormRemainsAnEmptyPath() public méthode

testFragmentIsNotDoubleEncoded() public méthode

testFragmentIsProperlyEncoded() public méthode

testMutatingSchemeStripsOffDelimiter() public méthode

testMutatingWithUnsupportedSchemeRaisesAnException() public méthode

testMutationResetsUriStringPropertyInClone() public méthode

public testMutationResetsUriStringPropertyInClone ( $method, $value )

testPathDoesNotBecomeDoubleEncoded() public méthode

testPathIsNotPrefixedWithSlashIfSetWithoutOne() public méthode

testPathIsProperlyEncoded() public méthode

testPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString() public méthode

testQueryIsNotDoubleEncoded() public méthode

public testQueryIsNotDoubleEncoded ( $query, $expected )

testQueryIsProperlyEncoded() public méthode

public testQueryIsProperlyEncoded ( $query, $expected )

testRetrievingAuthorityReturnsExpectedValues() public méthode

testSettingEmptyPathOnAbsoluteUriReturnsAnEmptyPath() public méthode

testStringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath() public méthode

testStringRepresentationOfOriginFormWithNoPathRetainsEmptyPath() public méthode

testStripsFragmentPrefixIfPresent() public méthode

testStripsQueryPrefixIfPresent() public méthode

testWithFragmentReturnsNewInstanceWithProvidedFragment() public méthode

testWithHostReturnsNewInstanceWithProvidedHost() public méthode

testWithPathRaisesExceptionForInvalidPaths() public méthode

testWithPathReturnsNewInstanceWithProvidedPath() public méthode

testWithPortRaisesExceptionForInvalidPorts() public méthode

testWithPortReturnsNewInstanceWithProvidedPort() public méthode

testWithQueryRaisesExceptionForInvalidQueryStrings() public méthode

testWithQueryReturnsNewInstanceWithProvidedQuery() public méthode

testWithSchemeReturnsNewInstanceWithNewScheme() public méthode

testWithUserInfoReturnsNewInstanceWithProvidedUser() public méthode

testWithUserInfoReturnsNewInstanceWithProvidedUserAndPassword() public méthode

validPorts() public méthode

public validPorts ( )