/** * 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(); }
/** * @dataProvider feedFileNameProvider */ public function testGetDowngetDownloadedFileName($feedData, $filename) { $feed = new Feed($feedData); $this->assertEquals($filename, $feed->getDownloadedFileName()); }