/** * Print the test footer output */ private function printFooter() { $footerContent = sprintf('Tests: %d | Assertions: %d | Successful: %d | Failures: %d', $this->numberOfTests, Assert::getCount(), $this->successes, $this->failures); $color = $this->failures > 0 ? ColorInterface::RED_BACKGROUND . ColorInterface::WHITE : ColorInterface::GREEN_BACKGROUND . ColorInterface::WHITE; $printer = $this->getPrinter(); $printer->println(''); $printer->println($printer->colorize($color, $footerContent)); }