\Symfony\Component\HttpFoundation\TestsRequestTest

Summary

Methods
Properties
Constants
testConstructor()
testInitialize()
testGetLocale()
testGetUser()
testGetPassword()
testIsNoCache()
testGetContentType()
testSetDefaultLocale()
testCreate()
testCreateCheckPrecedence()
testDuplicate()
testDuplicateWithFormat()
testGetFormatFromMimeType()
testGetFormatFromMimeTypeWithParameters()
testGetMimeTypeFromFormat()
getFormatToMimeTypeMapProvider()
testGetUri()
testGetUriForPath()
testGetUserInfo()
testGetSchemeAndHttpHost()
testGetQueryString()
getQueryStringNormalizationData()
testGetQueryStringReturnsNull()
testGetHost()
testGetPort()
testGetHostWithFakeHttpHostValue()
testGetSetMethod()
testGetClientIp()
testGetClientIps()
testGetClientIpsProvider()
testGetContentWorksTwiceInDefaultMode()
testGetContentReturnsResource()
testGetContentReturnsResourceWhenContentSetInConstructor()
testContentAsResource()
testGetContentCantBeCalledTwiceWithResources()
testGetContentCanBeCalledTwiceWithResources()
getContentCantBeCalledTwiceWithResourcesProvider()
provideOverloadedMethods()
testCreateFromGlobals()
testOverrideGlobals()
testGetScriptName()
testGetBasePath()
testGetPathInfo()
testGetPreferredLanguage()
testIsXmlHttpRequest()
testIntlLocale()
testGetCharsets()
testGetEncodings()
testGetAcceptableContentTypes()
testGetLanguages()
testGetRequestFormat()
testHasSession()
testGetSession()
testHasPreviousSession()
testToString()
testIsMethod()
testGetBaseUrl()
getBaseUrlData()
testUrlencodedStringPrefix()
urlencodedStringPrefixData()
testTrustedProxies()
testSetTrustedProxiesInvalidHeaderName()
testGetTrustedProxiesInvalidHeaderName()
testIISRequestUri()
iisRequestUriProvider()
testTrustedHosts()
testFactory()
testVeryLongHosts()
testHostValidity()
getHostValidities()
getLongHostNames()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
disableHttpMethodParameterOverride()
getRequestInstanceForClientIpTests()
No private properties found
N/A

Methods

testConstructor()

testConstructor() 

testInitialize()

testInitialize() 

testGetLocale()

testGetLocale() 

testGetUser()

testGetUser() 

testGetPassword()

testGetPassword() 

testIsNoCache()

testIsNoCache() 

testGetContentType()

testGetContentType() 

testSetDefaultLocale()

testSetDefaultLocale() 

testCreate()

testCreate() 

testCreateCheckPrecedence()

testCreateCheckPrecedence() 

testDuplicate()

testDuplicate() 

testDuplicateWithFormat()

testDuplicateWithFormat() 

testGetFormatFromMimeType()

testGetFormatFromMimeType(  $format,   $mimeTypes) 

Parameters

$format
$mimeTypes

testGetFormatFromMimeTypeWithParameters()

testGetFormatFromMimeTypeWithParameters() 

testGetMimeTypeFromFormat()

testGetMimeTypeFromFormat(  $format,   $mimeTypes) 

Parameters

$format
$mimeTypes

getFormatToMimeTypeMapProvider()

getFormatToMimeTypeMapProvider() 

testGetUri()

testGetUri() 

testGetUriForPath()

testGetUriForPath() 

testGetUserInfo()

testGetUserInfo() 

testGetSchemeAndHttpHost()

testGetSchemeAndHttpHost() 

testGetQueryString()

testGetQueryString(  $query,   $expectedQuery,   $msg) 

Parameters

$query
$expectedQuery
$msg

getQueryStringNormalizationData()

getQueryStringNormalizationData() 

testGetQueryStringReturnsNull()

testGetQueryStringReturnsNull() 

testGetHost()

testGetHost() 

testGetPort()

testGetPort() 

testGetHostWithFakeHttpHostValue()

testGetHostWithFakeHttpHostValue() 

testGetSetMethod()

testGetSetMethod() 

testGetClientIp()

testGetClientIp(  $expected,   $remoteAddr,   $httpForwardedFor,   $trustedProxies) 

Parameters

$expected
$remoteAddr
$httpForwardedFor
$trustedProxies

testGetClientIps()

testGetClientIps(  $expected,   $remoteAddr,   $httpForwardedFor,   $trustedProxies) 

Parameters

$expected
$remoteAddr
$httpForwardedFor
$trustedProxies

testGetClientIpsProvider()

testGetClientIpsProvider() 

testGetContentWorksTwiceInDefaultMode()

testGetContentWorksTwiceInDefaultMode() 

testGetContentReturnsResource()

testGetContentReturnsResource() 

testGetContentReturnsResourceWhenContentSetInConstructor()

testGetContentReturnsResourceWhenContentSetInConstructor() 

testContentAsResource()

testContentAsResource() 

testGetContentCantBeCalledTwiceWithResources()

testGetContentCantBeCalledTwiceWithResources(  $first,   $second) 

Parameters

$first
$second

testGetContentCanBeCalledTwiceWithResources()

testGetContentCanBeCalledTwiceWithResources(  $first,   $second) 

Parameters

$first
$second

getContentCantBeCalledTwiceWithResourcesProvider()

getContentCantBeCalledTwiceWithResourcesProvider() 

provideOverloadedMethods()

provideOverloadedMethods() 

testCreateFromGlobals()

testCreateFromGlobals(  $method) 

Parameters

$method

testOverrideGlobals()

testOverrideGlobals() 

testGetScriptName()

testGetScriptName() 

testGetBasePath()

testGetBasePath() 

testGetPathInfo()

testGetPathInfo() 

testGetPreferredLanguage()

testGetPreferredLanguage() 

testIsXmlHttpRequest()

testIsXmlHttpRequest() 

testIntlLocale()

testIntlLocale() 

testGetCharsets()

testGetCharsets() 

testGetEncodings()

testGetEncodings() 

testGetAcceptableContentTypes()

testGetAcceptableContentTypes() 

testGetLanguages()

testGetLanguages() 

testGetRequestFormat()

testGetRequestFormat() 

testHasSession()

testHasSession() 

testGetSession()

testGetSession() 

testHasPreviousSession()

testHasPreviousSession() 

testToString()

testToString() 

testIsMethod()

testIsMethod() 

testGetBaseUrl()

testGetBaseUrl(  $uri,   $server,   $expectedBaseUrl,   $expectedPathInfo) 

Parameters

$uri
$server
$expectedBaseUrl
$expectedPathInfo

getBaseUrlData()

getBaseUrlData() 

testUrlencodedStringPrefix()

testUrlencodedStringPrefix(  $string,   $prefix,   $expect) 

Parameters

$string
$prefix
$expect

urlencodedStringPrefixData()

urlencodedStringPrefixData() 

testTrustedProxies()

testTrustedProxies() 

testSetTrustedProxiesInvalidHeaderName()

testSetTrustedProxiesInvalidHeaderName() 

testGetTrustedProxiesInvalidHeaderName()

testGetTrustedProxiesInvalidHeaderName() 

testIISRequestUri()

testIISRequestUri(  $headers,   $server,   $expectedRequestUri) 

Parameters

$headers
$server
$expectedRequestUri

iisRequestUriProvider()

iisRequestUriProvider() 

testTrustedHosts()

testTrustedHosts() 

testFactory()

testFactory() 

testVeryLongHosts()

testVeryLongHosts(  $host) 

Parameters

$host

testHostValidity()

testHostValidity(  $host,   $isValid,   $expectedHost = null,   $expectedPort = null) 

Parameters

$host
$isValid
$expectedHost
$expectedPort

getHostValidities()

getHostValidities() 

getLongHostNames()

getLongHostNames() 

disableHttpMethodParameterOverride()

disableHttpMethodParameterOverride() 

getRequestInstanceForClientIpTests()

getRequestInstanceForClientIpTests(  $remoteAddr,   $httpForwardedFor,   $trustedProxies) 

Parameters

$remoteAddr
$httpForwardedFor
$trustedProxies