summaryrefslogtreecommitdiff
path: root/tests/Unit/Container/ContainerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Container/ContainerTest.php')
-rw-r--r--tests/Unit/Container/ContainerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Unit/Container/ContainerTest.php b/tests/Unit/Container/ContainerTest.php
index f0ba24e7..89c34209 100644
--- a/tests/Unit/Container/ContainerTest.php
+++ b/tests/Unit/Container/ContainerTest.php
@@ -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();