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