예제 #1
0
 /**
  * @param	array	$params		config params 
  * @return	null
  */
 public function execute(array $params = null)
 {
     /* regardless of the kernel settings unit tests
      * should have full error reporting and they should be displayed
      */
     error_reporting(E_ALL | E_STRICT);
     ini_set('error_diplay', 'on');
     $params = KernelRegistry::getParams();
     $domains = KernelRegistry::getDomainMap();
     $state = new KernelState();
     TestRegistry::setKernelState($state);
     TestRegistry::setKernelParams($params);
     TestRegistry::setKernelDomainMap($domains);
     $this->setStatus('appfuel unittest: initialized');
 }
예제 #2
0
 /**
  * Restore the include path to the original kernel state
  *
  * @return	null
  */
 public function restoreIncludePath()
 {
     $state = TestRegistry::getKernelState();
     set_include_path($state->getIncludePath());
 }