Пример #1
0
 public function testRestore()
 {
     Config::set('index', 'page1');
     $backup = Config::backup();
     Config::set('index', 'page2');
     $this->assertEquals('page2', Config::get('index'));
     Config::restore($backup);
     $this->assertEquals('page1', Config::get('index'));
 }
Пример #2
0
 protected function setUp()
 {
     $this->_backup = Config::backup();
     Config::set('page', dirname(__FILE__) . '/page');
     $this->_objects = dirname(__FILE__) . '/page/object';
 }
Пример #3
0
 protected function setUp()
 {
     $this->_backup = Config::backup();
     Config::set('page', dirname(__FILE__) . '/page');
     $this->_indices = dirname(__FILE__) . '/page/index';
 }
Пример #4
0
 protected function setUp()
 {
     $this->_backup = Config::backup();
     $this->_pages = dirname(__FILE__) . '/page';
     Config::set('page', $this->_pages);
 }