fixup! refactor: New Video class
This commit is contained in:
parent
4c9af8ad1d
commit
06a631c892
14 changed files with 23 additions and 40 deletions
|
@ -6,18 +6,13 @@
|
|||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Config;
|
||||
use Alltube\Video;
|
||||
use Alltube\PlaylistArchiveStream;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use RuntimeException;
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* Unit tests for the ViewFactory class.
|
||||
*/
|
||||
abstract class BaseTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Prepare tests.
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Config;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for the Config class.
|
||||
|
@ -132,7 +131,6 @@ class ConfigTest extends BaseTest
|
|||
Config::setOptions(['python' => 'foo']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test the getInstance function with the CONVERT and PYTHON environment variables.
|
||||
*
|
||||
|
|
|
@ -10,7 +10,6 @@ use Alltube\Controller\FrontController;
|
|||
use Alltube\LocaleManager;
|
||||
use Alltube\ViewFactory;
|
||||
use Exception;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Slim\Container;
|
||||
use Slim\Http\Environment;
|
||||
use Slim\Http\Request;
|
||||
|
|
|
@ -7,7 +7,6 @@ namespace Alltube\Test;
|
|||
|
||||
use Alltube\Locale;
|
||||
use Alltube\LocaleManager;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for the LocaleManagerTest class.
|
||||
|
|
|
@ -8,7 +8,6 @@ namespace Alltube\Test;
|
|||
use Alltube\Locale;
|
||||
use Alltube\LocaleManager;
|
||||
use Alltube\LocaleMiddleware;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Slim\Container;
|
||||
use Slim\Http\Environment;
|
||||
use Slim\Http\Request;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Locale;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for the LocaleTest class.
|
||||
|
|
|
@ -5,12 +5,8 @@
|
|||
|
||||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Config;
|
||||
use Alltube\Video;
|
||||
use Alltube\PlaylistArchiveStream;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use RuntimeException;
|
||||
use stdClass;
|
||||
use Alltube\Video;
|
||||
|
||||
/**
|
||||
* Unit tests for the ViewFactory class.
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\UglyRouter;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Slim\Http\Environment;
|
||||
use Slim\Http\Request;
|
||||
|
||||
|
|
|
@ -5,11 +5,9 @@
|
|||
|
||||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Config;
|
||||
use Alltube\Video;
|
||||
use Mockery;
|
||||
use phpmock\mockery\PHPMockery;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for the Video class.
|
||||
|
|
|
@ -7,14 +7,12 @@ namespace Alltube\Test;
|
|||
|
||||
use Alltube\Config;
|
||||
use Alltube\Video;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Unit tests for the Video class.
|
||||
*/
|
||||
class VideoTest extends BaseTest
|
||||
{
|
||||
|
||||
/**
|
||||
* Test getExtractors function.
|
||||
*
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\ViewFactory;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Slim\Container;
|
||||
use Slim\Http\Environment;
|
||||
use Slim\Http\Request;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue