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

onMutation() public method

public onMutation ( MutationEvent $event )
$event Hal\MutaTesting\Event\MutationEvent
    public function onMutation(MutationEvent $event)
    {
        if (!$event->getUnit()) {
            $this->progress('<error>E</error>');
            return;
        }
        if (!$event->getUnit()->hasFail()) {
            $this->progress('L');
        } else {
            $this->progress('.');
        }
    }