Add ExecutableNotFoundException
This commit is contained in:
parent
a39d8939db
commit
8e87d243d9
7 changed files with 61 additions and 18 deletions
|
|
@ -40,4 +40,12 @@ class FFMpegDriverTest extends TestCase
|
|||
$ffmpeg = FFMpegDriver::create($this->getLoggerMock(), $conf);
|
||||
$this->assertEquals($conf, $ffmpeg->getConfiguration());
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException FFMpeg\Exception\ExecutableNotFoundException
|
||||
*/
|
||||
public function testCreateFailureThrowsAnException()
|
||||
{
|
||||
FFMpegDriver::create($this->getLoggerMock(), array('ffmpeg.binaries' => '/path/to/nowhere'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,12 @@ class FFProbeDriverTest extends TestCase
|
|||
$ffprobe = FFProbeDriver::create($conf, $this->getLoggerMock());
|
||||
$this->assertEquals($conf, $ffprobe->getConfiguration());
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException FFMpeg\Exception\ExecutableNotFoundException
|
||||
*/
|
||||
public function testCreateFailureThrowsAnException()
|
||||
{
|
||||
FFProbeDriver::create(array('ffprobe.binaries' => '/path/to/nowhere'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class FFMpegServiceProviderTest extends \PHPUnit_Framework_TestCase
|
|||
)
|
||||
));
|
||||
|
||||
$this->setExpectedException('Alchemy\BinaryDriver\Exception\ExecutableNotFoundException', 'Executable not found, proposed : /path/to/ffmpeg');
|
||||
$this->setExpectedException('FFMpeg\Exception\ExecutableNotFoundException', 'Unable to load FFMpeg');
|
||||
$app['ffmpeg'];
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ class FFMpegServiceProviderTest extends \PHPUnit_Framework_TestCase
|
|||
)
|
||||
));
|
||||
|
||||
$this->setExpectedException('Alchemy\BinaryDriver\Exception\ExecutableNotFoundException', 'Executable not found, proposed : /path/to/ffprobe');
|
||||
$this->setExpectedException('FFMpeg\Exception\ExecutableNotFoundException', 'Unable to load FFProbe');
|
||||
$app['ffmpeg.ffprobe'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue