public function testSharedServiceReloadShared() { $di = new DI(); $di->setSharedService('fake_service', 'OU\\UniqidService'); $this->assertEquals($di->get('fake_service'), $di->get('fake_service')); $this->assertNotEquals($di->get('fake_service'), $di->get('fake_service', true)); }