PHP Class lithium\tests\cases\action\RequestTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Protected Properties

Свойство Type Description
$_cgiConfig
$_env
$_iisConfig
$_nginxConfig
$_superglobals

Méthodes publiques

Méthode Description
setUp ( )
tearDown ( )
testAcceptDoesNotAccepFullNamespacedType ( )
testAcceptForBothXmlWithAliasedHtml ( )
testAcceptSingleContentType ( ) Tests that Accept headers with only one listed content type are parsed property, and tests that '* /*' is still parsed as 'text/html'.
testAcceptTypeOrder ( ) Tests that accepted content-types without a q value are sorted in the order they appear in the HTTP_ACCEPT header.
testAcceptWithTypeParam ( )
testAcceptWithTypeParamFallbackHtml ( )
testAutomaticContentDecoding ( )
testBase ( )
testBaseWithAppAndOtherDirectory ( )
testBaseWithDirectory ( )
testCgiPhpAuthBasic ( )
testCgiPhpAuthBasicFailMissingPassword ( )
testCgiPhpAuthBasicFailMissingPasswordAndColon ( )
testCgiPhpAuthBasicFailMissingUser ( )
testCgiPhpAuthDigest ( )
testCgiPlatform ( )
testCgiScriptUrl ( )
testContentTypeDetection ( )
testConvertToString ( )
testConvertToStringWithJson ( )
testConvertToStringWithPost ( )
testConvertToUrl ( ) Tests that action\Request correctly inherits the functionality of the to() method inherited from lithium\net\http\Request.
testConvertToUrl2 ( )
testDataFromConstructor ( )
testDeepFileNormalization ( )
testDetect ( )
testDetectSsl ( )
testDetectWithArray ( )
testDetectWithArrayRegex ( )
testDetectWithClosure ( )
testDocumentRoot ( )
testDocumentRootTranslatedForIIS ( )
testEnvVariablesArePopulated ( )
testGetMethod ( )
testHeaders ( )
testHttps ( )
testHttpsFromScriptUri ( )
testInitData ( )
testInitMethodOverride ( )
testInitMethodOverrideWithEmptyServer ( )
testIsMobile ( )
testLocaleDetection ( )
testMagicParamsAccess ( )
testMergeMobileDetectors ( )
testMethodOverrideFromData ( )
testMixedFilesNormalization ( )
testNestedDeepFilesNormalization ( )
testNestedFilesNormalization ( )
testOverridingOfEnvVariables ( )
testParsingAcceptHeader ( )
testPhpAuthBasic ( )
testPhpAuthDigest ( )
testPlatform ( )
testQueryFromConstructor ( )
testRefererDefault ( )
testRefererLocal ( )
testRefererLocalFromNotLocal ( )
testRefererLocalWithHost ( )
testRefererNotLocal ( )
testRemoteAddr ( )
testRemoteAddrFromHttpPcRemoteAddr ( )
testRequestMethodConfiguration ( ) Tests that the HTTP request method set by Request from the server information is not overwritten in a parent class.
testRequestTypeAccessors ( )
testRequestTypeFromConstruct ( )
testRequestTypeFromHeader ( )
testRequestTypeFromParams ( )
testRequestTypeIsMobile ( )
testRequestUriWithAdminRoute ( )
testRequestUriWithHtAccessRedirection ( )
testRequestUriWithNoHtAccessRedirection ( )
testRequestUriWithVirtualHost ( )
testRequestWithColon ( )
testRequestWithEnvVariables ( )
testRequestWithNoGlobals ( )
testRequestWithoutUrlQueryParamAndNoApp ( )
testRequestWithoutUrlQueryParamAndNoAppOrWebroot ( )
testResponseTypeDetection ( )
testScriptFilename ( )
testScriptFilenameTranslatedForIIS ( )
testScriptName ( )
testServerHttpBase ( )
testSingleFileNormalization ( )
testType ( )
testTypeforNginx ( )
testUrlFromConstructor ( )

Method Details

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testAcceptDoesNotAccepFullNamespacedType() public méthode

testAcceptForBothXmlWithAliasedHtml() public méthode

testAcceptSingleContentType() public méthode

Tests that Accept headers with only one listed content type are parsed property, and tests that '* /*' is still parsed as 'text/html'.

testAcceptTypeOrder() public méthode

Tests that accepted content-types without a q value are sorted in the order they appear in the HTTP_ACCEPT header.
public testAcceptTypeOrder ( )

testAcceptWithTypeParam() public méthode

testAcceptWithTypeParamFallbackHtml() public méthode

testAutomaticContentDecoding() public méthode

testBase() public méthode

public testBase ( )

testBaseWithAppAndOtherDirectory() public méthode

testBaseWithDirectory() public méthode

testCgiPhpAuthBasic() public méthode

public testCgiPhpAuthBasic ( )

testCgiPhpAuthBasicFailMissingPassword() public méthode

testCgiPhpAuthBasicFailMissingPasswordAndColon() public méthode

testCgiPhpAuthBasicFailMissingUser() public méthode

testCgiPhpAuthDigest() public méthode

testCgiPlatform() public méthode

public testCgiPlatform ( )

testCgiScriptUrl() public méthode

public testCgiScriptUrl ( )

testContentTypeDetection() public méthode

testConvertToString() public méthode

public testConvertToString ( )

testConvertToStringWithJson() public méthode

testConvertToStringWithPost() public méthode

testConvertToUrl() public méthode

Tests that action\Request correctly inherits the functionality of the to() method inherited from lithium\net\http\Request.
public testConvertToUrl ( )

testConvertToUrl2() public méthode

public testConvertToUrl2 ( )

testDataFromConstructor() public méthode

testDeepFileNormalization() public méthode

testDetect() public méthode

public testDetect ( )

testDetectSsl() public méthode

public testDetectSsl ( )

testDetectWithArray() public méthode

public testDetectWithArray ( )

testDetectWithArrayRegex() public méthode

testDetectWithClosure() public méthode

testDocumentRoot() public méthode

public testDocumentRoot ( )

testDocumentRootTranslatedForIIS() public méthode

testEnvVariablesArePopulated() public méthode

testGetMethod() public méthode

public testGetMethod ( )

testHeaders() public méthode

public testHeaders ( )

testHttps() public méthode

public testHttps ( )

testHttpsFromScriptUri() public méthode

testInitData() public méthode

public testInitData ( )

testInitMethodOverride() public méthode

testInitMethodOverrideWithEmptyServer() public méthode

testIsMobile() public méthode

public testIsMobile ( )

testLocaleDetection() public méthode

public testLocaleDetection ( )

testMagicParamsAccess() public méthode

testMergeMobileDetectors() public méthode

testMethodOverrideFromData() public méthode

testMixedFilesNormalization() public méthode

testNestedDeepFilesNormalization() public méthode

testNestedFilesNormalization() public méthode

testOverridingOfEnvVariables() public méthode

testParsingAcceptHeader() public méthode

testPhpAuthBasic() public méthode

public testPhpAuthBasic ( )

testPhpAuthDigest() public méthode

public testPhpAuthDigest ( )

testPlatform() public méthode

public testPlatform ( )

testQueryFromConstructor() public méthode

testRefererDefault() public méthode

public testRefererDefault ( )

testRefererLocal() public méthode

public testRefererLocal ( )

testRefererLocalFromNotLocal() public méthode

testRefererLocalWithHost() public méthode

testRefererNotLocal() public méthode

public testRefererNotLocal ( )

testRemoteAddr() public méthode

public testRemoteAddr ( )

testRemoteAddrFromHttpPcRemoteAddr() public méthode

testRequestMethodConfiguration() public méthode

Tests that the HTTP request method set by Request from the server information is not overwritten in a parent class.

testRequestTypeAccessors() public méthode

testRequestTypeFromConstruct() public méthode

testRequestTypeFromHeader() public méthode

testRequestTypeFromParams() public méthode

testRequestTypeIsMobile() public méthode

testRequestUriWithAdminRoute() public méthode

testRequestUriWithHtAccessRedirection() public méthode

testRequestUriWithNoHtAccessRedirection() public méthode

testRequestUriWithVirtualHost() public méthode

testRequestWithColon() public méthode

testRequestWithEnvVariables() public méthode

testRequestWithNoGlobals() public méthode

testRequestWithoutUrlQueryParamAndNoApp() public méthode

testRequestWithoutUrlQueryParamAndNoAppOrWebroot() public méthode

testResponseTypeDetection() public méthode

testScriptFilename() public méthode

public testScriptFilename ( )

testScriptFilenameTranslatedForIIS() public méthode

testScriptName() public méthode

public testScriptName ( )

testServerHttpBase() public méthode

public testServerHttpBase ( )

testSingleFileNormalization() public méthode

testType() public méthode

public testType ( )

testTypeforNginx() public méthode

public testTypeforNginx ( )

testUrlFromConstructor() public méthode

Property Details

$_cgiConfig protected_oe property

protected $_cgiConfig

$_env protected_oe property

protected $_env

$_iisConfig protected_oe property

protected $_iisConfig

$_nginxConfig protected_oe property

protected $_nginxConfig

$_superglobals protected_oe property

protected $_superglobals