You are here

public function HttpCacheTest::getTrustedProxyData 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::getTrustedProxyData()

File

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

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function getTrustedProxyData() {
  return array(
    array(
      array(),
      array(
        '127.0.0.1',
      ),
    ),
    array(
      array(
        '10.0.0.2',
      ),
      array(
        '10.0.0.2',
        '127.0.0.1',
      ),
    ),
    array(
      array(
        '10.0.0.2',
        '127.0.0.1',
      ),
      array(
        '10.0.0.2',
        '127.0.0.1',
      ),
    ),
  );
}