public function HeaderTest::testForwardedFor in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Header/ HeaderTest.php, line 56
Class
Namespace
Auth0\TestsCode
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());
}