private function RequestTest::stopTrustingProxyData

5 calls to RequestTest::stopTrustingProxyData()
RequestTest::testForwardedSecure in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
RequestTest::testGetClientIp in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
@dataProvider testGetClientIpProvider
RequestTest::testGetHost in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
@covers Symfony\Component\HttpFoundation\Request::getHost
RequestTest::testIsProxyTrusted in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php
RequestTest::testOverrideGlobals in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php

File

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

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

private function stopTrustingProxyData() {
  $class = new \ReflectionClass('Symfony\\Component\\HttpFoundation\\Request');
  $property = $class
    ->getProperty('trustProxy');
  $property
    ->setAccessible(true);
  $property
    ->setValue(false);
}