protected function setUp(): void
{ parent::
setUp();
$this->container =
new ContainerBuilder();
} /**
* @covers ::getRuntimeContexts
*/
public function testGetRuntimeContextsSingle() { $contexts =
$this->
setupContextAndProvider('test_provider',
['test_context'
]);
$lazy_context_repository =
new LazyContextRepository($this->container,
['test_provider'
]);
$run_time_contexts =
$lazy_context_repository->
getRuntimeContexts(['@test_provider:test_context'
]);
$this->
assertEquals(['@test_provider:test_context' =>
$contexts[0
]],
$run_time_contexts);
} /**
* @covers ::getRuntimeContexts
*/
public function testGetRuntimeMultipleContextsPerService() { $contexts =
$this->
setupContextAndProvider('test_provider',
['test_context0', 'test_context1'
]);