예제 #1
0
파일: RequestTest.php 프로젝트: lytc/sloths
 public function testGetContentType()
 {
     $_SERVER['HTTP_CONTENT_TYPE'] = 'application/json';
     $request = new Request();
     $this->assertSame('application/json', $request->getContentType());
 }