public function testRemove() { $di = new \Elgg\Di\DiContainer(); $di->setValue('foo', 'Foo'); $this->assertSame($di, $di->remove('foo')); $this->assertFalse($di->has('foo')); }