/** * Fetches the NFO for the movie id $AllocineId * * @param string AllocineId * @return array(nfo => string)) */ public function doNfo($allocineId) { $scraper = new MkvManagerScraperAllocine(); $infos = $scraper->getMovieDetails($allocineId); $writer = new \mm\Xbmc\Nfo\Writers\Movie($infos); return array('nfo' => $writer->get()); }
public function testGet() { $info = $this->getInfoObject(); $nfoWriter = new mm\Xbmc\Nfo\Writers\Movie( $info ); $nfoContents = $nfoWriter->get(); self::assertEquals( file_get_contents( $this->referenceFile ), $nfoContents ); }