From: Philipp Holzer Date: Mon, 5 Aug 2019 07:22:06 +0000 (+0200) Subject: Revert ProfilerTest X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e65b96cb4b0193edcf6c0e6a4647f7ebbe01bb8;p=friendica.git Revert ProfilerTest --- diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index 2a3eed5973..5ade50dfb4 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());