public function test_create() { $httpResponse = new HttpResponse(); $httpResponse->setContent('foo'); $httpResponse->setContentType('bar'); $customResponse = HttpResponse::create($httpResponse); $this->assertEquals('foo', $customResponse->getContent()); $this->assertEquals('bar', $customResponse->getContentType()); }