/** * @return ResultsRenderer */ protected function getRenderer() { $color = new Color(); $color->setForceStyle(true); $this->terminal = $this->createMock(TerminalInterface::class); $exerciseRepo = $this->createMock(ExerciseRepository::class); $this->terminal->expects($this->any())->method('getWidth')->will($this->returnValue(20)); $syntaxHighlighter = (new Factory())->__invoke(); return new ResultsRenderer('appName', $color, $this->terminal, $exerciseRepo, $syntaxHighlighter, new ResultRendererFactory()); }