Destroy Config instance after each test

This commit is contained in:
Pierre Rudloff 2016-07-30 12:40:49 +02:00
parent e3cec201ee
commit 782d4e124e
2 changed files with 10 additions and 0 deletions

View file

@ -70,4 +70,9 @@ class Config
} }
return self::$instance; return self::$instance;
} }
public static function destroyInstance()
{
self::$instance = null;
}
} }

View file

@ -32,6 +32,11 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
$this->download = new VideoDownload(); $this->download = new VideoDownload();
} }
protected function tearDown()
{
\Alltube\Config::destroyInstance();
}
/** /**
* Test listExtractors function * Test listExtractors function
* *