\Symfony\Component\HttpFoundation\TestsRequestTest

Summary

Methods
Properties
Constants
testInitialize()
testGetLocale()
testGetUser()
testGetPassword()
testIsNoCache()
testGetContentType()
testSetDefaultLocale()
testCreate()
testCreateCheckPrecedence()
testDuplicate()
testDuplicateWithFormat()
testGetFormatFromMimeType()
getFormatToMimeTypeMapProviderWithAdditionalNullFormat()
testGetFormatFromMimeTypeWithParameters()
testGetMimeTypeFromFormat()
testGetMimeTypesFromFormat()
testGetMimeTypesFromInexistentFormat()
testGetFormatWithCustomMimeType()
getFormatToMimeTypeMapProvider()
testGetUri()
testGetUriForPath()
testGetRelativeUriForPath()
getRelativeUriForPathData()
testGetUserInfo()
testGetSchemeAndHttpHost()
testGetQueryString()
getQueryStringNormalizationData()
testGetQueryStringReturnsNull()
testGetHost()
testGetPort()
testGetHostWithFakeHttpHostValue()
testGetSetMethod()
testGetClientIp()
testGetClientIps()
testGetClientIpsForwarded()
getClientIpsForwardedProvider()
getClientIpsProvider()
testGetClientIpsWithConflictingHeaders()
getClientIpsWithConflictingHeadersProvider()
testGetClientIpsWithAgreeingHeaders()
getClientIpsWithAgreeingHeadersProvider()
testGetContentWorksTwiceInDefaultMode()
testGetContentReturnsResource()
testGetContentReturnsResourceWhenContentSetInConstructor()
testContentAsResource()
testGetContentCantBeCalledTwiceWithResources()
getContentCantBeCalledTwiceWithResourcesProvider()
testGetContentCanBeCalledTwiceWithResources()
getContentCanBeCalledTwiceWithResourcesProvider()
provideOverloadedMethods()
testCreateFromGlobals()
testOverrideGlobals()
testGetScriptName()
testGetBasePath()
testGetPathInfo()
testGetParameterPrecedence()
testGetPreferredLanguage()
testIsXmlHttpRequest()
testIntlLocale()
testGetCharsets()
testGetEncodings()
testGetAcceptableContentTypes()
testGetLanguages()
testGetRequestFormat()
testHasSession()
testGetSession()
testHasPreviousSession()
testToString()
testIsMethod()
testGetBaseUrl()
getBaseUrlData()
testUrlencodedStringPrefix()
urlencodedStringPrefixData()
testTrustedProxiesXForwardedFor()
testLegacyTrustedProxies()
testTrustedProxiesForwarded()
testSetTrustedProxiesInvalidHeaderName()
testGetTrustedProxiesInvalidHeaderName()
testIISRequestUri()
iisRequestUriProvider()
testTrustedHosts()
testFactory()
testVeryLongHosts()
testHostValidity()
getHostValidities()
getLongHostNames()
testMethodIdempotent()
methodIdempotentProvider()
testMethodSafe()
methodSafeProvider()
testMethodSafeChecksCacheable()
testMethodCacheable()
methodCacheableProvider()
testGetTrustedHeaderName()
nonstandardRequestsData()
testNonstandardRequests()
No public properties found
No constants found
tearDown()
No protected properties found
N/A
disableHttpMethodParameterOverride()
getRequestInstanceForClientIpTests()
getRequestInstanceForClientIpsForwardedTests()
No private properties found
N/A

Methods

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

getFormatToMimeTypeMapProviderWithAdditionalNullFormat()

getFormatToMimeTypeMapProviderWithAdditionalNullFormat() 

testGetFormatFromMimeTypeWithParameters()

testGetFormatFromMimeTypeWithParameters() 

testGetMimeTypeFromFormat()

testGetMimeTypeFromFormat(  $format,   $mimeTypes) 

Parameters

$format
$mimeTypes

testGetMimeTypesFromFormat()

testGetMimeTypesFromFormat(  $format,   $mimeTypes) 

Parameters

$format
$mimeTypes

testGetMimeTypesFromInexistentFormat()

testGetMimeTypesFromInexistentFormat() 

testGetFormatWithCustomMimeType()

testGetFormatWithCustomMimeType() 

getFormatToMimeTypeMapProvider()

getFormatToMimeTypeMapProvider() 

testGetUri()

testGetUri() 

testGetUriForPath()

testGetUriForPath() 

testGetRelativeUriForPath()

testGetRelativeUriForPath(  $expected,   $pathinfo,   $path) 

Parameters

$expected
$pathinfo
$path

getRelativeUriForPathData()

getRelativeUriForPathData() 

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

testGetClientIpsForwarded()

testGetClientIpsForwarded(  $expected,   $remoteAddr,   $httpForwarded,   $trustedProxies) 

Parameters

$expected
$remoteAddr
$httpForwarded
$trustedProxies

getClientIpsForwardedProvider()

getClientIpsForwardedProvider() 

getClientIpsProvider()

getClientIpsProvider() 

testGetClientIpsWithConflictingHeaders()

testGetClientIpsWithConflictingHeaders(  $httpForwarded,   $httpXForwardedFor) 

Parameters

$httpForwarded
$httpXForwardedFor

getClientIpsWithConflictingHeadersProvider()

getClientIpsWithConflictingHeadersProvider() 

testGetClientIpsWithAgreeingHeaders()

testGetClientIpsWithAgreeingHeaders(  $httpForwarded,   $httpXForwardedFor,   $expectedIps) 

Parameters

$httpForwarded
$httpXForwardedFor
$expectedIps

getClientIpsWithAgreeingHeadersProvider()

getClientIpsWithAgreeingHeadersProvider() 

testGetContentWorksTwiceInDefaultMode()

testGetContentWorksTwiceInDefaultMode() 

testGetContentReturnsResource()

testGetContentReturnsResource() 

testGetContentReturnsResourceWhenContentSetInConstructor()

testGetContentReturnsResourceWhenContentSetInConstructor() 

testContentAsResource()

testContentAsResource() 

testGetContentCantBeCalledTwiceWithResources()

testGetContentCantBeCalledTwiceWithResources(  $first,   $second) 

Parameters

$first
$second

getContentCantBeCalledTwiceWithResourcesProvider()

getContentCantBeCalledTwiceWithResourcesProvider() 

testGetContentCanBeCalledTwiceWithResources()

testGetContentCanBeCalledTwiceWithResources(  $first,   $second) 

Parameters

$first
$second

getContentCanBeCalledTwiceWithResourcesProvider()

getContentCanBeCalledTwiceWithResourcesProvider() 

provideOverloadedMethods()

provideOverloadedMethods() 

testCreateFromGlobals()

testCreateFromGlobals(  $method) 

Parameters

$method

testOverrideGlobals()

testOverrideGlobals() 

testGetScriptName()

testGetScriptName() 

testGetBasePath()

testGetBasePath() 

testGetPathInfo()

testGetPathInfo() 

testGetParameterPrecedence()

testGetParameterPrecedence() 

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() 

testTrustedProxiesXForwardedFor()

testTrustedProxiesXForwardedFor() 

testLegacyTrustedProxies()

testLegacyTrustedProxies() 

testTrustedProxiesForwarded()

testTrustedProxiesForwarded() 

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() 

testMethodIdempotent()

testMethodIdempotent(  $method,   $idempotent) 

Parameters

$method
$idempotent

methodIdempotentProvider()

methodIdempotentProvider() 

testMethodSafe()

testMethodSafe(  $method,   $safe) 

Parameters

$method
$safe

methodSafeProvider()

methodSafeProvider() 

testMethodSafeChecksCacheable()

testMethodSafeChecksCacheable() 

testMethodCacheable()

testMethodCacheable(  $method,   $chacheable) 

Parameters

$method
$chacheable

methodCacheableProvider()

methodCacheableProvider() 

testGetTrustedHeaderName()

testGetTrustedHeaderName() 

nonstandardRequestsData()

nonstandardRequestsData() 

testNonstandardRequests()

testNonstandardRequests(  $requestUri,   $queryString,   $expectedPathInfo,   $expectedUri,   $expectedBasePath = '',   $expectedBaseUrl = null) 

Parameters

$requestUri
$queryString
$expectedPathInfo
$expectedUri
$expectedBasePath
$expectedBaseUrl

tearDown()

tearDown() 

disableHttpMethodParameterOverride()

disableHttpMethodParameterOverride() 

getRequestInstanceForClientIpTests()

getRequestInstanceForClientIpTests(  $remoteAddr,   $httpForwardedFor,   $trustedProxies) 

Parameters

$remoteAddr
$httpForwardedFor
$trustedProxies

getRequestInstanceForClientIpsForwardedTests()

getRequestInstanceForClientIpsForwardedTests(  $remoteAddr,   $httpForwarded,   $trustedProxies) 

Parameters

$remoteAddr
$httpForwarded
$trustedProxies