/** * Unregisters dependency * @param string $alias * @return \RivetIoc\Ioc */ public static function unregister($alias) { $ioc = Ioc::getInstance(); return $ioc->unregister($alias); }
/** * Tests RivetIoc\Contracts\Singleton class */ public function testGetInstance() { $firstInstance = Ioc::getInstance(); $secondInstance = Ioc::getInstance(); $this->assertSame($firstInstance, $secondInstance); }