Esempio n. 1
0
 public function testInvalidConfigStateException()
 {
     $this->setExpectedException('RuntimeException', 'Config has already been loaded; please use a new instance to load another config');
     $example = new JSONConfig();
     $example->SetConfigLocation('tests/data/JSONConfigTest1.json');
     $example->LoadConfig();
     $example->SetConfigLocation('tests/data/JSONConfigTest2.json');
 }