示例#1
0
 /**
  * {@inheritdoc}
  */
 public function run(PHPUnit_Framework_TestResult $result = null)
 {
     if ($this->needsOXID()) {
         OxidLoader::getInstance()->load();
     } else {
         OxidLoader::getInstance()->emulate();
     }
     $return = parent::run($result);
     return $return;
 }
示例#2
0
 /**
  * Boostraps OXID
  */
 protected function loadOXIDFramework()
 {
     $loader = OxidLoader::getInstance()->setDirectoryFinder($this->directoryFinder);
     if ($this->isOXIDMandatory()) {
         $loader->load();
         $this->isOXIDLoaded = $loader->isLoaded();
     }
 }