Example #1
0
 /**
  * Get the Conf instance
  *
  * @return Conf
  */
 protected function getConf()
 {
     if (!$this->conf) {
         Conf::init(__DIR__ . '/../../../config');
         $this->conf = Conf::getInstance();
     }
     return $this->conf;
 }
Example #2
0
 /**
  * @small
  * @expectedException \Bravo3\Properties\Exception\PropertyNotFoundException
  */
 public function testMissingPropertyArray()
 {
     Conf::init(__DIR__ . '/Resources');
     $this->assertNull(Conf::get('invalid.property'));
     Conf::getInstance()->offsetGet('invalid.property');
 }