1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-21 06:56:40 +02:00

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;
}
public static function destroyInstance()
{
self::$instance = null;
}
}

View File

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