You are here

public function HeaderTest::testForwardedFor in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Header/HeaderTest.php, line 56

Class

HeaderTest

Namespace

Auth0\Tests

Code

public function testForwardedFor() {
  $forwardedForVal = uniqid();
  $header = new ForwardedFor($forwardedForVal);
  $this
    ->assertEquals('Auth0-Forwarded-For', $header
    ->getHeader());
  $this
    ->assertEquals($forwardedForVal, $header
    ->getValue());
  $this
    ->assertEquals("Auth0-Forwarded-For: {$forwardedForVal}\n", $header
    ->get());
}