コード例 #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');
 }
コード例 #2
0
ファイル: Decorator.php プロジェクト: voodoo-mobile/readmegen
 /**
  * Log setter.
  *
  * @param array $log
  *
  * @return $this
  */
 public function setLog(array $log)
 {
     $this->formatter->setLog($log);
     return $this;
 }