diff --git a/classes/Config.php b/classes/Config.php index c7befdf..cc13c3c 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -70,4 +70,9 @@ class Config } return self::$instance; } + + public static function destroyInstance() + { + self::$instance = null; + } } diff --git a/tests/VideoDownloadTest.php b/tests/VideoDownloadTest.php index 4855d74..bfe4e4d 100644 --- a/tests/VideoDownloadTest.php +++ b/tests/VideoDownloadTest.php @@ -32,6 +32,11 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase $this->download = new VideoDownload(); } + protected function tearDown() + { + \Alltube\Config::destroyInstance(); + } + /** * Test listExtractors function *