public function setUp()
 {
     $this->tmpDirectory = dirname(__FILE__) . '/../../../../tmp';
     $this->config = new Stagehand_TestRunner_Config();
     $this->config->framework = $this->framework;
     $this->config->logsResultsInJUnitXML = true;
     $this->config->junitXMLFile = $this->tmpDirectory . '/' . get_class($this) . '.' . $this->getName(false) . '.xml';
     $factory = new Stagehand_TestRunner_Collector_CollectorFactory($this->config);
     $this->collector = $factory->create();
 }
 protected function setUp()
 {
     Stagehand_LegacyError_PHPError::enableConversion(error_reporting());
     $this->tmpDirectory = dirname(__FILE__) . '/../../../tmp';
     $this->config = new Stagehand_TestRunner_Config();
     $this->config->framework = $this->framework;
     $this->config->logsResultsInJUnitXML = true;
     $this->config->junitXMLFile = $this->tmpDirectory . '/' . get_class($this) . '.' . $this->getName(false) . '.xml';
     $this->configure($this->config);
     $preparatorFactory = new Stagehand_TestRunner_Preparator_PreparatorFactory($this->config);
     $this->preparator = $preparatorFactory->create();
     $this->preparator->prepare();
     $collectorFactory = new Stagehand_TestRunner_Collector_CollectorFactory($this->config);
     $this->collector = $collectorFactory->create();
     $this->loadClasses();
 }
Beispiel #3
0
 /**
  * @return Stagehand_TestRunner_Collector
  * @since Method available since Release 2.11.0
  */
 protected function createCollector()
 {
     $factory = new Stagehand_TestRunner_Collector_CollectorFactory($this->config);
     return $factory->create();
 }