public function testGetHttpResponse()
 {
     $headers = file_get_contents(dirname(__FILE__) . '/../../Resources/tests/curl-200-headers.txt');
     $body = file_get_contents(dirname(__FILE__) . '/../../Resources/sample-atom.xml');
     $response = $this->object->getHttpResponse($headers, $body);
     $this->assertInstanceOf('\\Debril\\RssAtomBundle\\Driver\\HttpDriverResponse', $response);
 }
Example #2
0
 public function getHttpResponse($headerString, $body)
 {
     $response = parent::getHttpResponse($headerString, $body);
     $response->setBody(utf8_encode($response->getBody()));
     return $response;
 }