Fix php 5.3 compatibility

This commit is contained in:
Alexander Schranz 2021-11-27 00:28:01 +01:00
commit bc50855aa9

View file

@ -695,12 +695,13 @@ class VideoTest extends AbstractStreamableTestCase
->method('getConfiguration')
->will($this->returnValue($configuration));
$self = $this;
$driver->expects($this->exactly(1))
->method('command')
->with($this->isType('array'), false, $this->anything())
->will($this->returnCallback(function ($commands, $errors, $listeners) {
var_dump($commands);
$this->assertTrue(!in_array('-b:v', $commands));
->will($this->returnCallback(function ($commands, $errors, $listeners) use ($self) {
$self->assertTrue(!in_array('-b:v', $commands));
}));
$video = new Video(__FILE__, $driver, $ffprobe);