Add Png/Gif tests for extract image support
This commit is contained in:
parent
b61a2ea183
commit
d024622a8e
1 changed files with 31 additions and 0 deletions
|
|
@ -53,6 +53,37 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
|
||||||
unlink($dest);
|
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
|
* @covers FFMpeg\FFMpeg::extractImage
|
||||||
* @expectedException \FFMpeg\Exception\LogicException
|
* @expectedException \FFMpeg\Exception\LogicException
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue