Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit b4e1c6a

Browse files
bakura10weierophinney
authored andcommitted
Update changelog
1 parent 54d553e commit b4e1c6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/ServiceManagerTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,13 @@ public function testCanCreateNewLocatorWithMergedConfig()
273273

274274
$this->assertTrue($newServiceManager->has(DateTime::class));
275275
$this->assertTrue($newServiceManager->has(stdClass::class));
276+
277+
// Make sure the context has been updated for the new container
278+
279+
$reflectionProperty = new \ReflectionProperty($newServiceManager, 'creationContext');
280+
$reflectionProperty->setAccessible(true);
281+
282+
$this->assertSame($newServiceManager, $reflectionProperty->getValue($newServiceManager));
276283
}
277284

278285
public function testOverrideConfigWhenMerged()

0 commit comments

Comments
 (0)