destroyInstance() 공개 정적인 메소드

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