public function HttpCacheTest::testHttpCacheIsSetAsATrustedProxy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testHttpCacheIsSetAsATrustedProxy()
@dataProvider getTrustedProxyData
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 1146
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testHttpCacheIsSetAsATrustedProxy(array $existing, array $expected) {
Request::setTrustedProxies($existing);
$this
->setNextResponse();
$this
->request('GET', '/', array(
'REMOTE_ADDR' => '10.0.0.1',
));
$this
->assertEquals($expected, Request::getTrustedProxies());
}