From bc50855aa96049aa12394737f4a391a50315ef4f Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Sat, 27 Nov 2021 00:28:01 +0100 Subject: [PATCH] Fix php 5.3 compatibility --- tests/Unit/Media/VideoTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Unit/Media/VideoTest.php b/tests/Unit/Media/VideoTest.php index 8352c45..39c405d 100644 --- a/tests/Unit/Media/VideoTest.php +++ b/tests/Unit/Media/VideoTest.php @@ -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);