PHP Class PhlyTest\Http\ServerRequestFactoryTest

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

Méthodes publiques

Méthode Description
testCanCreateServerRequestViaFromGlobalsMethod ( )
testGetWillReturnDefaultValueIfKeyIsNotInArray ( )
testGetWillReturnValueIfPresentInArray ( )
testMarshalHostAndPortReturnsEmptyValuesIfNoHostHeaderAndNoServerName ( )
testMarshalHostAndPortReturnsServerAddrForHostIfPresentAndHostIsIpv6Address ( )
testMarshalHostAndPortReturnsServerNameForHostIfServerAddrPresentButHostIsNotIpv6Address ( )
testMarshalHostAndPortReturnsServerNameForHostWhenPresent ( )
testMarshalHostAndPortReturnsServerPortForPortWhenPresentWithServerName ( )
testMarshalHostAndPortUsesHostHeaderWhenPresent ( )
testMarshalHostAndPortWillDetectPortInHostHeaderWhenPresent ( )
testMarshalHostAndPortWillDetectPortInIpv6StyleHost ( )
testMarshalRequestUriFallsBackToRoot ( )
testMarshalRequestUriStripsSchemeHostAndPortInformationWhenPresent ( )
testMarshalRequestUriUsesHTTPXOriginalUrlIfPresent ( )
testMarshalRequestUriUsesHTTPXRewriteUrlIfPresent ( )
testMarshalRequestUriUsesIISUnencodedUrlValueIfPresentAndUrlWasRewritten ( )
testMarshalRequestUriUsesOrigPathInfoIfPresent ( )
testMarshalUriDetectsHttpsSchemeFromServerValue ( )
testMarshalUriDetectsHttpsSchemeFromXForwardedProtoValue ( )
testMarshalUriInjectsQueryStringFromServer ( )
testMarshalUriStripsQueryStringFromRequestUri ( )
testMarshalUriUsesHttpSchemeIfHttpsServerValueEqualsOff ( )
testMarshalsExpectedHeadersFromServerArray ( )
testNormalizeServerReturnsArrayUnalteredIfApacheHeadersDoNotContainAuthorization ( )
testNormalizeServerUsesLowerCaseAuthorizationHeaderFromApacheWhenPresent ( )
testNormalizeServerUsesMixedCaseAuthorizationHeaderFromApacheWhenPresent ( )
testReturnsServerValueUnchangedIfHttpAuthorizationHeaderIsPresent ( )
testStripQueryStringReturnsNormalizedPathWhenQueryStringDetected ( )
testStripQueryStringReturnsUnchangedStringIfNoQueryStringDetected ( )

Method Details

testCanCreateServerRequestViaFromGlobalsMethod() public méthode

testGetWillReturnDefaultValueIfKeyIsNotInArray() public méthode

testGetWillReturnValueIfPresentInArray() public méthode

testMarshalHostAndPortReturnsEmptyValuesIfNoHostHeaderAndNoServerName() public méthode

testMarshalHostAndPortReturnsServerAddrForHostIfPresentAndHostIsIpv6Address() public méthode

testMarshalHostAndPortReturnsServerNameForHostIfServerAddrPresentButHostIsNotIpv6Address() public méthode

testMarshalHostAndPortReturnsServerNameForHostWhenPresent() public méthode

testMarshalHostAndPortReturnsServerPortForPortWhenPresentWithServerName() public méthode

testMarshalHostAndPortUsesHostHeaderWhenPresent() public méthode

testMarshalHostAndPortWillDetectPortInHostHeaderWhenPresent() public méthode

testMarshalHostAndPortWillDetectPortInIpv6StyleHost() public méthode

testMarshalRequestUriFallsBackToRoot() public méthode

testMarshalRequestUriStripsSchemeHostAndPortInformationWhenPresent() public méthode

testMarshalRequestUriUsesHTTPXOriginalUrlIfPresent() public méthode

testMarshalRequestUriUsesHTTPXRewriteUrlIfPresent() public méthode

testMarshalRequestUriUsesIISUnencodedUrlValueIfPresentAndUrlWasRewritten() public méthode

testMarshalRequestUriUsesOrigPathInfoIfPresent() public méthode

testMarshalUriDetectsHttpsSchemeFromServerValue() public méthode

testMarshalUriDetectsHttpsSchemeFromXForwardedProtoValue() public méthode

testMarshalUriInjectsQueryStringFromServer() public méthode

testMarshalUriStripsQueryStringFromRequestUri() public méthode

testMarshalUriUsesHttpSchemeIfHttpsServerValueEqualsOff() public méthode

testMarshalsExpectedHeadersFromServerArray() public méthode

testNormalizeServerReturnsArrayUnalteredIfApacheHeadersDoNotContainAuthorization() public méthode

testNormalizeServerUsesLowerCaseAuthorizationHeaderFromApacheWhenPresent() public méthode

testNormalizeServerUsesMixedCaseAuthorizationHeaderFromApacheWhenPresent() public méthode

testReturnsServerValueUnchangedIfHttpAuthorizationHeaderIsPresent() public méthode

testStripQueryStringReturnsNormalizedPathWhenQueryStringDetected() public méthode

testStripQueryStringReturnsUnchangedStringIfNoQueryStringDetected() public méthode