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