Alltube\Config::destroyInstance PHP Méthode

destroyInstance() public static méthode

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

Usage Example

Exemple #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