Skip to content

Commit

Permalink
remove isJson() test
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 7, 2021
1 parent f951af9 commit ec86ad1
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/system/HTTP/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,28 +331,4 @@ public function testPopulateHeaders()
$this->message->removeHeader('accept-language');
$_SERVER = $original; // restore so code coverage doesn't break
}

public function testIsJsonReturnsFalseWithNoHeader()
{
$this->assertFalse($this->message->isJSON());
}

public function testIsJsonReturnsFalseWithWrongContentType()
{
$this->message->setHeader('Content-Type', 'application/xml');
$this->assertFalse($this->message->isJSON());
}

public function testIsJsonReturnsTrue()
{
$this->message->setHeader('Content-Type', 'application/json');
$this->assertTrue($this->message->isJSON());
}

public function testIsJsonWorksWithExtendedContentType()
{
$this->message->setHeader('Content-Type', 'application/json;charset=UTF-8');
$this->assertTrue($this->message->isJSON());
}

}

0 comments on commit ec86ad1

Please sign in to comment.