public function setup() { $this->conf = Conf::dump(); if (isset($_ENV['photon.config'])) { Conf::load(include $_ENV['photon.config']); } }
public function setUp() { $this->conf = Conf::dump(); // Dummy view to test the middleware Conf::set('urls', array(array('regex' => '#^/$#', 'view' => array(__NAMESPACE__ . '\\DummyViews', 'simple')))); // Register the middleware to be tested Conf::set('middleware_classes', array('\\photon\\middleware\\Security')); }
public function testDumpLoad() { $this->assertequals(true, Conf::f('debug')); $conf = Conf::dump(); $new_conf = array('debug' => false); Conf::load($new_conf); $this->assertequals(false, Conf::f('debug')); Conf::load($conf); $this->assertequals(true, Conf::f('debug')); }
public function setUp() { $this->conf = Conf::dump(); }
public function run() { $this->loadConfig(); $conf = Conf::dump(); unset($conf['cmd_params']); var_export($conf); }
public function setUp() { $this->conf = Conf::dump(); $this->level = Log::$level; }