Exemple #1
0
 /**
  * Merge an array of config variables into Re::$config
  * Example: Re::addToConfig(array('disallow' => array(0, '0')))
  * @param mixed $config
  * @return array $config
  **/
 public static function addToConfig($config = null)
 {
     if (empty($config)) {
         return;
     }
     Re::$config = array_merge(Re::$config, $config);
     return Re::$config;
 }
Exemple #2
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->User);
     Re::$config = $this->previousConfig;
     parent::tearDown();
 }