/** * @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())); }
public function download($file_id, $token) { $response = \FileDriver::download($file_id, $token); return $response; }
public function download($id) { return \FileDriver::download($id); }