public function RequestTest::testGetClientIpsForwardedProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetClientIpsForwardedProvider()
File
- vendor/
symfony/ http-foundation/ Tests/ RequestTest.php, line 892
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGetClientIpsForwardedProvider() {
// $expected $remoteAddr $httpForwarded $trustedProxies
return array(
array(
array(
'127.0.0.1',
),
'127.0.0.1',
'for="_gazonk"',
null,
),
array(
array(
'_gazonk',
),
'127.0.0.1',
'for="_gazonk"',
array(
'127.0.0.1',
),
),
array(
array(
'88.88.88.88',
),
'127.0.0.1',
'for="88.88.88.88:80"',
array(
'127.0.0.1',
),
),
array(
array(
'192.0.2.60',
),
'::1',
'for=192.0.2.60;proto=http;by=203.0.113.43',
array(
'::1',
),
),
array(
array(
'2620:0:1cfe:face:b00c::3',
'192.0.2.43',
),
'::1',
'for=192.0.2.43, for=2620:0:1cfe:face:b00c::3',
array(
'::1',
),
),
array(
array(
'2001:db8:cafe::17',
),
'::1',
'for="[2001:db8:cafe::17]:4711',
array(
'::1',
),
),
);
}