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