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);