public function onMutationsDone(\Hal\MutaTesting\Event\MutationsDoneEvent $event)
{
$this->output->writeln('');
$this->output->writeln('');
$this->output->writeln('Result:');
// total
$service = new \Hal\MutaTesting\Mutation\Consolidation\TotalService($event->getMutations());
switch (true) {
case $service->getScore() > 80:
$color = 'info';
break;
case $service->getSurvivors()->count() > 50:
$color = 'warning';
break;
default:
$color = 'error';
break;
}
$this->output->writeln(sprintf("\t" . '<%2$s>score: %1$s%%</%2$s>', $service->getScore(), $color));
$this->output->writeln(sprintf("\t%d mutants.", $service->getMutants()->count()));
$this->output->writeln(sprintf("\t%d survivors.", $service->getSurvivors()->count()));
}