From 71bc37c1c1dbd2ba2b49e65abd2497ed1a02b671 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Wed, 24 Jul 2019 12:48:29 +0200 Subject: [PATCH] Fix DI-check test --- tests/functional/DependencyCheckTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index 4a1ab5afde..9fe469d5e8 100644 --- a/tests/functional/DependencyCheckTest.php +++ b/tests/functional/DependencyCheckTest.php @@ -83,6 +83,8 @@ class dependencyCheck extends TestCase ] ]); + // create new DI-library because of shared instance rule (so the Profiler wouldn't get created twice) + $this->dice = new Dice(include __DIR__ . '/../../static/dependencies.config.php'); $profiler = $this->dice->create(Profiler::class, [$configCache]); $this->assertInstanceOf(Profiler::class, $profiler);