Пример #1
0
 /**
  * @return	null
  */
 public function tearDown()
 {
     TaskHandler::clearStatusList();
     foreach ($this->statusBackup as $key => $msg) {
         TaskHandler::addStatus($key, $msg);
     }
     ConfigRegistry::clear();
     ConfigRegistry::setAll($this->configBackup);
 }
Пример #2
0
 /**
  * @test
  * @return	null
  */
 public function clearData()
 {
     $list = array('param-a' => 'value-1', 'param-b' => 'value-2', 'param-c' => 'value-3', 'param-d' => 'value-4');
     ConfigRegistry::load($list);
     $this->assertNull(ConfigRegistry::clear());
     $this->assertEquals(array(), ConfigRegistry::getAll());
 }