public function endPhaseGroup($result)
{
$resultString = $result->getResultString();
$duration = $result->getDuration();
$this->write(PHP_EOL);
//$this->write('-------------------------------------------------------------' . PHP_EOL, $this->writer->commentStyle);
$this->write('----' . PHP_EOL, $this->writer->commentStyle);
$this->write("Result: ");
if ($result->getPhaseGroupSucceeded()) {
$this->write($resultString, $this->writer->successStyle);
} else {
if ($result->getPhaseGroupFailed()) {
$this->write($resultString, $this->writer->failStyle);
} else {
$this->write($resultString, $this->writer->skippedStyle);
}
}
$this->write(" (", $this->writer->punctuationStyle);
$this->writeDuration($duration);
$this->write(")" . PHP_EOL, $this->writer->punctuationStyle);
$this->write('-------------------------------------------------------------' . PHP_EOL . PHP_EOL, $this->writer->commentStyle);
$this->results[] = clone $result;
// we want a detailed error report if something went wrong
$this->writeDetailedErrorReport($result);
}