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(); }
/** * @return Stagehand_TestRunner_Preparator * @since Method available since Release 2.12.0 */ protected function createPreparator() { $factory = new Stagehand_TestRunner_Preparator_PreparatorFactory($this->config); return $factory->create(); }