Ejemplo n.º 1
0
 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');
 }
Ejemplo n.º 2
0
 /**
  * Returns the decorated log.
  * @return FormatInterface
  */
 public function decorate()
 {
     return $this->formatter->decorate();
 }