Fix DI-check test
This commit is contained in:
parent
6759e0c193
commit
71bc37c1c1
|
@ -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]);
|
$profiler = $this->dice->create(Profiler::class, [$configCache]);
|
||||||
|
|
||||||
$this->assertInstanceOf(Profiler::class, $profiler);
|
$this->assertInstanceOf(Profiler::class, $profiler);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user