Test common functions with every URL provider
This commit is contained in:
parent
b4be0ead6a
commit
c153fd8264
1 changed files with 9 additions and 1 deletions
|
@ -84,6 +84,9 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
|
|||
*
|
||||
* @return void
|
||||
* @dataProvider urlProvider
|
||||
* @dataProvider m3uUrlProvider
|
||||
* @dataProvider rtmpUrlProvider
|
||||
* @dataProvider remuxUrlProvider
|
||||
*/
|
||||
public function testGetURL($url, $format, $filename, $extension, $domain)
|
||||
{
|
||||
|
@ -250,8 +253,9 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
|
|||
* @param string $format Format
|
||||
*
|
||||
* @return void
|
||||
* @dataProvider URLProvider
|
||||
* @dataProvider urlProvider
|
||||
* @dataProvider m3uUrlProvider
|
||||
* @dataProvider rtmpUrlProvider
|
||||
*/
|
||||
public function testGetJSON($url, $format)
|
||||
{
|
||||
|
@ -290,6 +294,8 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
|
|||
* @return void
|
||||
* @dataProvider urlProvider
|
||||
* @dataProvider m3uUrlProvider
|
||||
* @dataProvider rtmpUrlProvider
|
||||
* @dataProvider remuxUrlProvider
|
||||
*/
|
||||
public function testGetFilename($url, $format, $filename, $extension)
|
||||
{
|
||||
|
@ -321,6 +327,8 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
|
|||
* @return void
|
||||
* @dataProvider urlProvider
|
||||
* @dataProvider m3uUrlProvider
|
||||
* @dataProvider rtmpUrlProvider
|
||||
* @dataProvider remuxUrlProvider
|
||||
*/
|
||||
public function testGetAudioFilename($url, $format, $filename)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue