Inheritance: extends Symfony\Component\EventDispatcher\Event
 public function onFirstRun(FirstRunEvent $event)
 {
     $units = $event->getUnits();
     $this->output->writeln(sprintf("  %d tests executed (%d assertions)", sizeof($units->all()), $units->getNumOfAssertions()));
     if ($units->getNumOfFailures() || $units->getNumOfErrors()) {
         $this->output->writeln(sprintf('<error>  Be careful, some tests fails ! There was %d failures and %d errors</error>', $units->getNumOfFailures(), $units->getNumOfErrors()));
     } else {
         $this->output->writeln('  <info>OK</info>');
     }
 }
Example #2
0
 public function onFirstRun(FirstRunEvent $event)
 {
     $this->units = $event->getUnits();
 }