destroyInstance() public static method

Destroy singleton instance.
public static destroyInstance ( ) : void
return void
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);
 }
Esempio n. 2
0
 /**
  * Destroy properties after test.
  */
 protected function tearDown()
 {
     Config::destroyInstance();
 }