Fixed Container test

This commit is contained in:
Igor Scheller 2017-09-20 01:21:36 +02:00
parent 86c0713baa
commit 3141c3f8b5
2 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,6 @@
<filter>
<whitelist>
<directory>./include/</directory>
<directory>./public/</directory>
<directory>./src/</directory>
</whitelist>
</filter>

View File

@ -85,6 +85,12 @@ class ContainerTest extends TestCase
*/
public function testContainerSingleton()
{
// Ensure that no container has been initialized
$reflection = new \ReflectionProperty(Container::class, 'instance');
$reflection->setAccessible(true);
$reflection->setValue(null, null);
$reflection->setAccessible(false);
$container0 = new Container();
$container = Container::getInstance();