diff --git a/tests/src/FFMpeg/BinaryTest.php b/tests/src/FFMpeg/BinaryTest.php index 9711dbb..081d482 100644 --- a/tests/src/FFMpeg/BinaryTest.php +++ b/tests/src/FFMpeg/BinaryTest.php @@ -22,6 +22,7 @@ class BinaryTest extends \PHPUnit_Framework_TestCase /** * @covers FFMpeg\Binary::__construct + * @expectedException \FFMpeg\Exception\BinaryNotFoundException */ public function testConstruct() { diff --git a/tests/src/FFMpeg/FFMpegTest.php b/tests/src/FFMpeg/FFMpegTest.php index 96cbb69..3629008 100644 --- a/tests/src/FFMpeg/FFMpegTest.php +++ b/tests/src/FFMpeg/FFMpegTest.php @@ -112,7 +112,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase /** * @covers FFMpeg\FFMpeg::encode - * @expectedException \RuntimeException + * @expectedException FFMpeg\Exception\BinaryNotFoundException */ public function testWrongBinary() { @@ -120,13 +120,6 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase $logger->pushHandler(new \Monolog\Handler\NullHandler()); $ffmpeg = new FFMpeg('wrongbinary', $logger); - $ffmpeg->setProber($this->probe); - $ffmpeg->open(__DIR__ . '/../../files/Test.ogv'); - - $format = new Format\Video\WebM(); - $format-> setDimensions(32, 32); - - $ffmpeg->encode($format, './invalid.file'); } /**