public function RequestTest::testGetClientIps 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::testGetClientIps()
@dataProvider testGetClientIpsProvider
File
- vendor/
symfony/ http-foundation/ Tests/ RequestTest.php, line 871
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGetClientIps($expected, $remoteAddr, $httpForwardedFor, $trustedProxies) {
$request = $this
->getRequestInstanceForClientIpTests($remoteAddr, $httpForwardedFor, $trustedProxies);
$this
->assertEquals($expected, $request
->getClientIps());
Request::setTrustedProxies(array());
}