Gc\Event\StaticEventManager::resetInstance PHP Method

resetInstance() public static method

Reset the singleton instance
public static resetInstance ( ) : void
return void
    public static function resetInstance()
    {
        static::$instance = null;
    }

Usage Example

コード例 #1
0
ファイル: ModuleTest.php プロジェクト: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testOnBootstrap()
 {
     $this->assertTrue($this->object->install());
     $this->assertTrue($this->object->update('0.1.0'));
     $this->assertNull($this->object->onBootstrap(Registry::get('Application')->getMvcEvent()));
     $this->assertTrue($this->object->uninstall());
     StaticEventManager::resetInstance();
 }
All Usage Examples Of Gc\Event\StaticEventManager::resetInstance