Example #1
0
 /**
  * @return null
  */
 public function tearDown()
 {
     KernelRegistry::setRouteMap($this->bkRoutes);
     KernelRegistry::setParams($this->bkParams);
     $this->front = null;
     $_GET = $this->bkSuperGlobals['get'];
     $_POST = $this->bkSuperGlobals['post'];
     $_FILES = $this->bkSuperGlobals['files'];
     $_COOKIE = $this->bkSuperGlobals['cookie'];
     $cli = $this->bkSuperGlobals['argv'];
     if (null !== $cli) {
         $_SERVER['argv'] = $cli;
     }
 }
Example #2
0
 /**
  * Restore all the kernel registry settings with the settings backup 
  * that occured in the UnitTestStartup strategy
  *
  * @return	null
  */
 public function restoreKernelRegistry()
 {
     KernelRegistry::setParams(TestRegistry::getKernelParams());
     KernelRegistry::setDomainMap(TestRegistry::getKernelDomainMap());
 }