public function HttpCacheTest::testXForwarderForHeaderForPassRequests

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php, line 1070

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testXForwarderForHeaderForPassRequests() {
  $this
    ->setNextResponse();
  $server = array(
    'REMOTE_ADDR' => '10.0.0.1',
  );
  $this
    ->request('POST', '/', $server);
  $this
    ->assertEquals('10.0.0.1', $this->kernel
    ->getBackendRequest()->headers
    ->get('X-Forwarded-For'));
}