configProvider = new ConfigProvider(); } /** @test */ public function properConfigIsReturned(): void { $config = ($this->configProvider)(); self::assertCount(5, $config); self::assertArrayHasKey('routes', $config); self::assertArrayHasKey('dependencies', $config); self::assertArrayHasKey('entity_manager', $config); self::assertArrayHasKey('events', $config); self::assertArrayHasKey(ConfigAbstractFactory::class, $config); } }