find($name)) { $found = true; break; } } if (!$found) { $this->markTestSkipped('Neither ffmpeg or avconv found'); } } public function testCreate() { $logger = $this->getLoggerMock(); $ffmpeg = FFMpegDriver::create($logger, []); $this->assertInstanceOf('FFMpeg\Driver\FFMpegDriver', $ffmpeg); $this->assertEquals($logger, $ffmpeg->getProcessRunner()->getLogger()); } public function testCreateWithConfig() { $conf = new Configuration(); $ffmpeg = FFMpegDriver::create($this->getLoggerMock(), $conf); $this->assertEquals($conf, $ffmpeg->getConfiguration()); } public function testCreateFailureThrowsAnException() { $this->expectException('\FFMpeg\Exception\ExecutableNotFoundException'); FFMpegDriver::create($this->getLoggerMock(), ['ffmpeg.binaries' => '/path/to/nowhere']); } }