Example #1
0
 public function __construct()
 {
     parent::__construct();
     $tmp = \PWEUnitTests::utGetCleanTMP();
     $this->setDataDirectory($tmp);
     $this->setXMLDirectory($tmp);
     file_put_contents($this->getModulesManager()->getRegistryFile(), "<registry/>");
     $this->setTempDirectory($tmp);
     $this->setStructFile(__DIR__ . "/../../dummyStruct.xml");
 }
Example #2
0
 static function getTestPWECore()
 {
     $pwe = new PWECore();
     PWEAutoloader::setPWE($pwe);
     $temp = PWEUnitTests::utGetCleanTMP();
     $pwe->setDataDirectory($temp);
     $pwe->setTempDirectory($temp);
     $pwe->setXMLDirectory($temp);
     PWELogger::debug("Finished creating test PWE Core");
     return $pwe;
 }