Exemple #1
0
 /**
  * @param ProcessEvent $processEvent
  */
 public function onProcessTerminated(ProcessEvent $processEvent)
 {
     $process = $processEvent->getProcess();
     $logs = $this->logLocator->fetch($process);
     if ($this->noTestsExecuted($process, $logs)) {
         $this->noTestExecutedResultContainer->addProcessToFilenames($process);
         return;
     }
     foreach ($logs as $singleLog) {
         $this->processLog($process, $singleLog);
     }
 }
 /**
  * @param TestFilenameBearerInterface $testResultContainer
  * @param OutputInterface $output
  */
 private function printFileRecap(TestFilenameBearerInterface $testResultContainer, OutputInterface $output)
 {
     if (!$testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) {
         return;
     }
     $filenames = $testResultContainer->getFileNames();
     if (count($filenames)) {
         $tag = $testResultContainer->getTestResultFormat()->getTag();
         $title = $testResultContainer->getTestResultFormat()->getTitle();
         $output->writeln('');
         $output->writeln(sprintf('<%s>%d files with %s:</%s>', $tag, count($filenames), strtoupper($title), $tag));
         foreach ($filenames as $fileName) {
             $output->writeln(sprintf(' <%s>%s</%s>', $tag, $fileName, $tag));
         }
     }
 }