From 2e65b96cb4b0193edcf6c0e6a4647f7ebbe01bb8 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Mon, 5 Aug 2019 09:22:06 +0200 Subject: [PATCH] Revert ProfilerTest --- tests/functional/DependencyCheckTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index 2a3eed597..5ade50dfb 100644 --- a/tests/functional/DependencyCheckTest.php +++ b/tests/functional/DependencyCheckTest.php @@ -87,7 +87,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())->create(Profiler::class, [$configCache]); + $this->dice = new Dice(include __DIR__ . '/../../static/dependencies.config.php'); + $profiler = $this->dice->create(Profiler::class, [$configCache]); $this->assertInstanceOf(Profiler::class, $profiler); $this->assertTrue($profiler->isRendertime());