public function testConvertToVideo() { $source = fopen("{$this->_files}/video_theora_comments.ogv", 'rb'); $target = fopen('php://temp', 'wb'); $subject = new Media_Process_Adapter_FfmpegShell($source); $subject->convert('video/mpeg'); $result = $subject->store($target); $this->assertType(PHPUnit_Framework_Constraint_IsType::TYPE_INT, $result); $this->assertEquals('video/mpeg', Mime_Type::guessType($target)); fclose($source); fclose($target); }
public function testDimensions() { $source = fopen("{$this->_files}/video_theora_comments.ogv", 'rb'); $subject = new Media_Process_Adapter_FfmpegShell($source); $this->assertEquals(320, $subject->width()); $this->assertEquals(176, $subject->height()); fclose($source); }