There was an error while loading. Please reload this page.
1 parent 82ee78c commit a474d15Copy full SHA for a474d15
src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
@@ -166,6 +166,18 @@ public function testGet()
166
$this->assertNull($sc->get('', ContainerInterface::NULL_ON_INVALID_REFERENCE));
167
}
168
169
+ /**
170
+ * @covers Symfony\Component\DependencyInjection\Container::get
171
+ */
172
+ public function testGetAfterSetNull()
173
+ {
174
+ $sc = new ProjectServiceContainer();
175
+ $this->assertNotNull($sc->get('bar'));
176
+
177
+ $sc->set('bar' , null);
178
+ $this->assertNull($sc->get('bar'));
179
+ }
180
181
public function testGetCircularReference()
182
{
183
0 commit comments