Esempio n. 1
0
 protected function runTests()
 {
     $factory = new Stagehand_TestRunner_Runner_RunnerFactory($this->config);
     $this->runner = $factory->create();
     $testRunner = $this->getMock('Stagehand_TestRunner_TestRunner', array('createPreparator', 'createCollector', 'createRunner', 'notifyGrowlOfResults'), array($this->config));
     $testRunner->expects($this->any())->method('createPreparator')->will($this->returnValue($this->preparator));
     $testRunner->expects($this->any())->method('createCollector')->will($this->returnValue($this->collector));
     $testRunner->expects($this->any())->method('createRunner')->will($this->returnValue($this->runner));
     $testRunner->expects($this->any())->method('notifyGrowlOfResults')->will($this->returnValue(null));
     ob_start();
     $testRunner->run();
     $this->output = ob_get_contents();
     ob_end_clean();
 }
Esempio n. 2
0
 /**
  * @return Stagehand_TestRunner_Runner
  * @since Method available since Release 2.11.0
  */
 protected function createRunner()
 {
     $factory = new Stagehand_TestRunner_Runner_RunnerFactory($this->config);
     return $factory->create();
 }
Esempio n. 3
0
 protected function runTests()
 {
     $factory = new Stagehand_TestRunner_Runner_RunnerFactory($this->config);
     $this->runner = $factory->create();
     ob_start();
     $this->runner->run($this->collector->collect());
     $this->output = ob_get_contents();
     ob_end_clean();
 }