Fix tests to fit the latest interfaces
This commit is contained in:
parent
d58059c087
commit
2d75a3694a
3 changed files with 3 additions and 25 deletions
|
|
@ -36,23 +36,6 @@ class BinaryTest extends \PHPUnit_Framework_TestCase
|
||||||
BinaryTesterWrongBinary::load();
|
BinaryTesterWrongBinary::load();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers FFMpeg\Binary::run
|
|
||||||
*/
|
|
||||||
public function testRun()
|
|
||||||
{
|
|
||||||
BinaryTester::runner('php --version');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers FFMpeg\Binary::run
|
|
||||||
* @expectedException \RuntimeException
|
|
||||||
*/
|
|
||||||
public function testRunFail()
|
|
||||||
{
|
|
||||||
BinaryTester::runner('aphp -version');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class BinaryTester extends Binary
|
class BinaryTester extends Binary
|
||||||
|
|
@ -63,11 +46,6 @@ class BinaryTester extends Binary
|
||||||
return 'php';
|
return 'php';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function runner($command, $bypass_errors = false)
|
|
||||||
{
|
|
||||||
return self::run($command, $bypass_errors);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class BinaryTesterWrongBinary extends Binary
|
class BinaryTesterWrongBinary extends Binary
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ class DefaultAudioFormatTester extends DefaultAudioFormat
|
||||||
|
|
||||||
protected $audioCodec = 'audiocodec1';
|
protected $audioCodec = 'audiocodec1';
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -193,12 +193,12 @@ class DefaultVideoFormatTester extends DefaultVideoFormat
|
||||||
protected $audioCodec = 'audiocodec1';
|
protected $audioCodec = 'audiocodec1';
|
||||||
protected $videoCodec = 'videocodec2';
|
protected $videoCodec = 'videocodec2';
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAvailableVideoCodecs()
|
public function getAvailableVideoCodecs()
|
||||||
{
|
{
|
||||||
return array('videocodec1', 'videocodec2');
|
return array('videocodec1', 'videocodec2');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue