Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /**
  * @expectedException Kompakt\AudioTools\Runner\Exception\RuntimeException
  */
 public function testCmdNotFound()
 {
     $eyeD3Runner = new EyeD3Runner('xxx');
     $eyeD3Runner->execute('--help 2> /dev/null');
 }