public function testWhetherOneCanCheckIfAConfigObjectHasAnyPropertiesOrSections()
 {
     $config = new ConfigObject();
     $this->assertTrue($config->isEmpty(), 'ConfigObjects do not report that they are empty');
     $config->test = 'test';
     $this->assertFalse($config->isEmpty(), 'ConfigObjects do report that they are empty although they are not');
 }
Exemple #2
0
 /**
  * Return whether this config has any sections
  *
  * @return  bool
  */
 public function isEmpty()
 {
     return $this->config->isEmpty();
 }