public function testAddImage() { $outFile = $this->getMp3TestFile(__METHOD__); $artwork = sprintf('%s/_files/EyeD3HelperTest/artwork.jpg', __DIR__); $eyeD3Helper = new EyeD3Helper(); $eyeD3Runner = new EyeD3Runner(TESTS_KOMPAKT_AUDIOTOOLS_EYED3); $eyeD3Helper->addImage($artwork); $eyeD3Runner->execute($eyeD3Helper->getCmd($outFile)); $this->assertFileExists($outFile); }
/** * @expectedException Kompakt\AudioTools\Runner\Exception\RuntimeException */ public function testCmdNotFound() { $eyeD3Runner = new EyeD3Runner('xxx'); $eyeD3Runner->execute('--help 2> /dev/null'); }