/**
  * Prints the individual "quick" feedback for run
  * tests, that is the ".EF" items
  *
  * @param ExecutableTest $test
  */
 public function printFeedback(ExecutableTest $test)
 {
     $reader = new Reader($test->getTempFile());
     if (!$reader->hasResults()) {
         throw new \RuntimeException("Log file " . $test->getTempFile() . " is empty.\n                This means a PHPUnit process was unable to run " . $test->getPath() . "\n                Maybe there is more than one class in this file.");
     }
     $this->results->addReader($reader);
     $feedbackItems = $reader->getFeedback();
     $dataProviderOverhead = count($feedbackItems) - $test->getTestMethodCount();
     $this->totalCases += $dataProviderOverhead;
     foreach ($feedbackItems as $item) {
         $this->printFeedbackItem($item);
     }
     $warnings = $test->getWarnings();
     if ($warnings) {
         $this->addWarnings($warnings);
         foreach ($warnings as $warning) {
             $this->printFeedbackItem('W');
         }
     }
 }
Beispiel #2
0
 /**
  * Prints test warnings.
  *
  * @param  ExecutableTest $test
  */
 protected function printTestWarnings($test)
 {
     $warnings = $test->getWarnings();
     if ($warnings) {
         $this->addWarnings($warnings);
         foreach ($warnings as $warning) {
             $this->printFeedbackItem('W');
         }
     }
 }