Fix PhpUnit tests for newer php version
This commit is contained in:
parent
537f61095f
commit
14dc6a8b1b
21 changed files with 48 additions and 40 deletions
|
|
@ -9,11 +9,11 @@ use FFMpeg\FFProbe\DataMapping\Stream;
|
|||
class FFMpegTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException \FFMpeg\Exception\RuntimeException
|
||||
* @expectedExceptionMessage Unable to probe "/path/to/unknown/file".
|
||||
*/
|
||||
public function testOpenInvalid()
|
||||
{
|
||||
$this->expectException('\FFMpeg\Exception\RuntimeException');
|
||||
$ffmpeg = new FFMpeg($this->getFFMpegDriverMock(), $this->getFFProbeMock());
|
||||
$ffmpeg->open('/path/to/unknown/file');
|
||||
}
|
||||
|
|
@ -58,10 +58,10 @@ class FFMpegTest extends TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \FFMpeg\Exception\InvalidArgumentException
|
||||
*/
|
||||
public function testOpenUnknown()
|
||||
{
|
||||
$this->expectException('\FFMpeg\Exception\InvalidArgumentException');
|
||||
$ffprobe = $this->getFFProbeMock();
|
||||
$ffprobe->expects($this->once())
|
||||
->method('streams')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue