public function testSetFactoryUnshared()
{
$di = new \Elgg\Di\DiContainer();
$this->assertSame($di, $di->setFactory('foo', array($this, 'getFoo'), false));
$this->assertTrue($di->has('foo'));
$foo1 = $di->foo;
$foo2 = $di->foo;
$this->assertInstanceOf(self::TEST_CLASS, $foo1);
$this->assertNotSame($foo1, $foo2);
}