diff --git a/tests/src/FFMpeg/FFMpegTest.php b/tests/src/FFMpeg/FFMpegTest.php index edadbc9..00fa3c7 100644 --- a/tests/src/FFMpeg/FFMpegTest.php +++ b/tests/src/FFMpeg/FFMpegTest.php @@ -53,6 +53,37 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase unlink($dest); } + /** + * @covers FFMpeg\FFMpeg::extractImage + */ + public function testExtractImagePng() + { + $dest = __DIR__ . '/../../files/extract_Test.png'; + + $this->object->open(__DIR__ . '/../../files/Test.ogv'); + $this->object->extractImage(2, $dest); + + $this->probe->probeFormat($dest); + + unlink($dest); + } + + + /** + * @covers FFMpeg\FFMpeg::extractImage + */ + public function testExtractImageGif() + { + $dest = __DIR__ . '/../../files/extract_Test.gif'; + + $this->object->open(__DIR__ . '/../../files/Test.ogv'); + $this->object->extractImage(2, $dest); + + $this->probe->probeFormat($dest); + + unlink($dest); + } + /** * @covers FFMpeg\FFMpeg::extractImage * @expectedException \FFMpeg\Exception\LogicException