Fix tests

This commit is contained in:
Romain Neutron 2012-09-03 19:16:50 +02:00
commit 01756fa1a8
2 changed files with 2 additions and 8 deletions

View file

@ -22,6 +22,7 @@ class BinaryTest extends \PHPUnit_Framework_TestCase
/** /**
* @covers FFMpeg\Binary::__construct * @covers FFMpeg\Binary::__construct
* @expectedException \FFMpeg\Exception\BinaryNotFoundException
*/ */
public function testConstruct() public function testConstruct()
{ {

View file

@ -112,7 +112,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
/** /**
* @covers FFMpeg\FFMpeg::encode * @covers FFMpeg\FFMpeg::encode
* @expectedException \RuntimeException * @expectedException FFMpeg\Exception\BinaryNotFoundException
*/ */
public function testWrongBinary() public function testWrongBinary()
{ {
@ -120,13 +120,6 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
$logger->pushHandler(new \Monolog\Handler\NullHandler()); $logger->pushHandler(new \Monolog\Handler\NullHandler());
$ffmpeg = new FFMpeg('wrongbinary', $logger); $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');
} }
/** /**