You are here

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

File

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

Class

HeaderTest

Namespace

Auth0\Tests

Code

public function testContentType() {
  $contentType = 'CONTENT/TYPE';
  $header = new ContentType($contentType);
  $this
    ->assertEquals('Content-Type', $header
    ->getHeader());
  $this
    ->assertEquals($contentType, $header
    ->getValue());
  $this
    ->assertEquals("Content-Type: {$contentType}\n", $header
    ->get());
}