public static function getInstance()
{
if (!self::$instance instanceof self) {
self::$instance = new self();
}
return self::$instance;
}
public function testDestroy() { $instance1 = Registry::getInstance(); Registry::destroy(); $instance2 = Registry::getInstance(); $this->assertNotSame($instance1, $instance2); }