/**
  * @covers Debril\RssAtomBundle\Driver\FileDriver::getResponse
  *
  * @todo   Implement testGetResponse().
  */
 public function testGetResponse()
 {
     $url = dirname(__FILE__) . '/../../Resources/sample-rss.xml';
     $response = $this->object->getResponse($url, new \DateTime());
     $this->assertTrue($response instanceof HttpDriverResponse);
     $this->assertInternalType('string', $response->getBody());
     $this->assertGreaterThan(0, strlen($response->getBody()));
 }
Example #2
0
 public function download($file_id, $token)
 {
     $response = \FileDriver::download($file_id, $token);
     return $response;
 }
Example #3
0
 public function download($id)
 {
     return \FileDriver::download($id);
 }