Add bc layer for older php and phpunit versions
This commit is contained in:
parent
8837f4b115
commit
7474bf936f
16 changed files with 90 additions and 99 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue