Hal\MutaTesting\Event\Subscriber\Format\ConsoleSubscriber::onFirstRun PHP Method

onFirstRun() public method

public onFirstRun ( FirstRunEvent $event )
$event Hal\MutaTesting\Event\FirstRunEvent
    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>');
        }
    }