Exemplo n.º 1
0
 /**
  * Produce a local path to save the package to
  * @param Feed $feed
  * @return string
  */
 public function getBaseDownloadPath(Feed $feed)
 {
     $basePath = $this->locator->getDownloadBaseDir();
     return $basePath . '/' . $feed->getDownloadedFileName();
 }
Exemplo n.º 2
0
 /**
  * @dataProvider feedFileNameProvider
  */
 public function testGetDowngetDownloadedFileName($feedData, $filename)
 {
     $feed = new Feed($feedData);
     $this->assertEquals($filename, $feed->getDownloadedFileName());
 }