public function testGetContentType() { $_SERVER['HTTP_CONTENT_TYPE'] = 'application/json'; $request = new Request(); $this->assertSame('application/json', $request->getContentType()); }