Add bc layer for older php and phpunit versions

This commit is contained in:
Alexander Schranz 2020-02-19 21:52:13 +01:00
commit 7474bf936f
16 changed files with 90 additions and 99 deletions

View file

@ -8,12 +8,12 @@ use FFMpeg\FFProbe\DataMapping\Stream;
class FFMpegTest extends TestCase
{
/**
* @expectedExceptionMessage Unable to probe "/path/to/unknown/file".
*/
public function testOpenInvalid()
{
$this->expectException('\FFMpeg\Exception\RuntimeException');
$this->expectException(
'\FFMpeg\Exception\RuntimeException',
'Unable to probe "/path/to/unknown/file"'
);
$ffmpeg = new FFMpeg($this->getFFMpegDriverMock(), $this->getFFProbeMock());
$ffmpeg->open('/path/to/unknown/file');
}
@ -57,8 +57,6 @@ class FFMpegTest extends TestCase
$this->assertInstanceOf('FFMpeg\Media\Video', $ffmpeg->open(__FILE__));
}
/**
*/
public function testOpenUnknown()
{
$this->expectException('\FFMpeg\Exception\InvalidArgumentException');