function it_should_set_the_correct_output_class(FormatInterface $formatter) { $formatter->setLog([])->shouldBeCalled(); $formatter->setIssueTrackerUrlPattern('')->shouldBeCalled(); $formatter->decorate()->willReturn('foo'); $this->setLog([]); $this->setIssueTrackerUrlPattern(''); $this->decorate()->shouldReturn('foo'); }
/** * Log setter. * * @param array $log * * @return $this */ public function setLog(array $log) { $this->formatter->setLog($log); return $this; }