You are here

public function HttpCacheTest::getXForwardedForData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::getXForwardedForData()

File

vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php, line 1180

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function getXForwardedForData() {
  return array(
    array(
      false,
      '10.0.0.1',
    ),
    array(
      '10.0.0.2',
      '10.0.0.2, 10.0.0.1',
    ),
    array(
      '10.0.0.2, 10.0.0.3',
      '10.0.0.2, 10.0.0.3, 10.0.0.1',
    ),
  );
}