Fix php 5.3 compatibility
This commit is contained in:
parent
e7e56d0440
commit
bc50855aa9
1 changed files with 4 additions and 3 deletions
|
|
@ -695,12 +695,13 @@ class VideoTest extends AbstractStreamableTestCase
|
||||||
->method('getConfiguration')
|
->method('getConfiguration')
|
||||||
->will($this->returnValue($configuration));
|
->will($this->returnValue($configuration));
|
||||||
|
|
||||||
|
$self = $this;
|
||||||
|
|
||||||
$driver->expects($this->exactly(1))
|
$driver->expects($this->exactly(1))
|
||||||
->method('command')
|
->method('command')
|
||||||
->with($this->isType('array'), false, $this->anything())
|
->with($this->isType('array'), false, $this->anything())
|
||||||
->will($this->returnCallback(function ($commands, $errors, $listeners) {
|
->will($this->returnCallback(function ($commands, $errors, $listeners) use ($self) {
|
||||||
var_dump($commands);
|
$self->assertTrue(!in_array('-b:v', $commands));
|
||||||
$this->assertTrue(!in_array('-b:v', $commands));
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
$video = new Video(__FILE__, $driver, $ffprobe);
|
$video = new Video(__FILE__, $driver, $ffprobe);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue