Destroy Config instance after each test
This commit is contained in:
parent
e3cec201ee
commit
782d4e124e
2 changed files with 10 additions and 0 deletions
|
@ -70,4 +70,9 @@ class Config
|
|||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
public static function destroyInstance()
|
||||
{
|
||||
self::$instance = null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,11 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
|
|||
$this->download = new VideoDownload();
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
\Alltube\Config::destroyInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test listExtractors function
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue