public function testParsingContentTypeWithoutEncoding() { $response = new Response(array('headers' => array('Content-Type' => 'application/json'))); $this->assertEqual('json', $response->type()); $this->assertEqual('UTF-8', $response->encoding); //default }