Ejemplo n.º 1
0
 /**
  * Init instance
  *
  * @return Instance
  */
 protected static function initInstance()
 {
     $instance = new Instance();
     $instance->setPath(Application::getInstance()->getPath());
     $instance->setEnvironment(Application::getInstance()->getEnvironment());
     $instance->init();
     return $instance;
 }
Ejemplo n.º 2
0
 /**
  * @covers Bluz\Config\Config::getModuleData
  */
 public function testGetModuleDataBySectionWithEnvironment()
 {
     $this->config->setPath($this->path);
     $this->config->setEnvironment('testing');
     $this->assertEquals('baz', $this->config->getModuleData('index', 'foo'));
 }