/** * Print the actual and expected output. * * @param ResultsRenderer $renderer * @return string */ public function render(ResultsRenderer $renderer) { return sprintf(" %s\n%s\n\n %s\n%s\n", $renderer->style('YOUR OUTPUT:', ['bold', 'yellow']), $this->indent($renderer->style(sprintf('"%s"', $this->result->getActualValue()), 'red')), $renderer->style('EXPECTED OUTPUT:', ['bold', 'yellow']), $this->indent($renderer->style(sprintf('"%s"', $this->result->getExpectedValue()), 'green'))); }