Alltube\Config::destroyInstance PHP Method

destroyInstance() public static method

Destroy singleton instance.
public static destroyInstance ( ) : void
return void
    public static function destroyInstance()
    {
        self::$instance = null;
    }

Usage Example

Esempio n. 1
0
 /**
  * Test the getInstance function with the CONVERT environment variable.
  *
  * @return void
  */
 public function testGetInstanceWithEnv()
 {
     putenv('CONVERT=1');
     Config::destroyInstance();
     $config = Config::getInstance('config_test.yml');
     $this->assertEquals($config->convert, true);
 }
All Usage Examples Of Alltube\Config::destroyInstance