PHP Class PhlyTest\Http\ServerRequestFactoryTest

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

Public Methods

Method 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 method

testGetWillReturnDefaultValueIfKeyIsNotInArray() public method

testGetWillReturnValueIfPresentInArray() public method

testMarshalHostAndPortReturnsEmptyValuesIfNoHostHeaderAndNoServerName() public method

testMarshalHostAndPortReturnsServerAddrForHostIfPresentAndHostIsIpv6Address() public method

testMarshalHostAndPortReturnsServerNameForHostIfServerAddrPresentButHostIsNotIpv6Address() public method

testMarshalHostAndPortReturnsServerNameForHostWhenPresent() public method

testMarshalHostAndPortReturnsServerPortForPortWhenPresentWithServerName() public method

testMarshalHostAndPortUsesHostHeaderWhenPresent() public method

testMarshalHostAndPortWillDetectPortInHostHeaderWhenPresent() public method

testMarshalHostAndPortWillDetectPortInIpv6StyleHost() public method

testMarshalRequestUriFallsBackToRoot() public method

testMarshalRequestUriStripsSchemeHostAndPortInformationWhenPresent() public method

testMarshalRequestUriUsesHTTPXOriginalUrlIfPresent() public method

testMarshalRequestUriUsesHTTPXRewriteUrlIfPresent() public method

testMarshalRequestUriUsesIISUnencodedUrlValueIfPresentAndUrlWasRewritten() public method

testMarshalRequestUriUsesOrigPathInfoIfPresent() public method

testMarshalUriDetectsHttpsSchemeFromServerValue() public method

testMarshalUriDetectsHttpsSchemeFromXForwardedProtoValue() public method

testMarshalUriInjectsQueryStringFromServer() public method

testMarshalUriStripsQueryStringFromRequestUri() public method

testMarshalUriUsesHttpSchemeIfHttpsServerValueEqualsOff() public method

testMarshalsExpectedHeadersFromServerArray() public method

testNormalizeServerReturnsArrayUnalteredIfApacheHeadersDoNotContainAuthorization() public method

testNormalizeServerUsesLowerCaseAuthorizationHeaderFromApacheWhenPresent() public method

testNormalizeServerUsesMixedCaseAuthorizationHeaderFromApacheWhenPresent() public method

testReturnsServerValueUnchangedIfHttpAuthorizationHeaderIsPresent() public method

testStripQueryStringReturnsNormalizedPathWhenQueryStringDetected() public method

testStripQueryStringReturnsUnchangedStringIfNoQueryStringDetected() public method