Пример #1
0
 public function xml($conf, &$reg = null)
 {
     $xml = new Xml();
     $log = new Logger();
     $log->setLoglevel($this->xincLoglevel());
     $xml->setLogger($log);
     $reg = new Registry();
     $reg->setLogger($log);
     $reg->setConfig($conf);
     return $xml;
 }
Пример #2
0
 /**
  * Setup a project configuration object
  * 
  * It registers the test engine class as the default engine.
  * 
  * @param $conf Xinc::Core::Config::Config
  * @param $reg Xinc::Core::Registry::Registry
  * @return Xinc::Core::Project::Config::Xml
  */
 public function projectXml($conf, &$reg = null)
 {
     $xml = new ConfigXml();
     $log = new Logger();
     $log->setLoglevel($this->xincLoglevel());
     $xml->setLogger($log);
     $reg = new Registry();
     $reg->setLogger($log);
     $reg->setConfig($conf);
     $reg->registerEngineClass('Xinc\\Core\\Test\\Engine', true);
     $xml->load($conf, $reg);
     $pro = new ProjectXml();
     $pro->setLogger($log);
     return $pro;
 }