You are here

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

File

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

Class

HeaderTest

Namespace

Auth0\Tests

Code

public function testAuthorizationBearer() {
  $token = 'THISISTHETOKEN';
  $header = new AuthorizationBearer($token);
  $this
    ->assertEquals('Authorization', $header
    ->getHeader());
  $this
    ->assertEquals("Bearer {$token}", $header
    ->getValue());
  $this
    ->assertEquals("Authorization: Bearer {$token}\n", $header
    ->get());
}