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