You are here

public function RequestTest::testGetClientIpsForwarded in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetClientIpsForwarded()

@dataProvider testGetClientIpsForwardedProvider

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 883

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetClientIpsForwarded($expected, $remoteAddr, $httpForwarded, $trustedProxies) {
  $request = $this
    ->getRequestInstanceForClientIpsForwardedTests($remoteAddr, $httpForwarded, $trustedProxies);
  $this
    ->assertEquals($expected, $request
    ->getClientIps());
  Request::setTrustedProxies(array());
}