You are here

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

File

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

Class

HeaderTest

Namespace

Auth0\Tests

Code

public function testHeader() {
  $headerName = 'HEADERNAME';
  $value = 'THISISTHEVALUE';
  $header = new Header($headerName, $value);
  $this
    ->assertEquals($headerName, $header
    ->getHeader());
  $this
    ->assertEquals($value, $header
    ->getValue());
  $this
    ->assertEquals("{$headerName}: {$value}\n", $header
    ->get());
}