public function RequestTest::testIsProxyTrusted

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php, line 1024

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIsProxyTrusted() {
  $this
    ->startTrustingProxyData();
  $this
    ->assertTrue(Request::isProxyTrusted());
  $this
    ->stopTrustingProxyData();
  $this
    ->assertFalse(Request::isProxyTrusted());
}