コード例 #1
0
ファイル: ParserSpec.php プロジェクト: fojuth/readmegen
 function it_should_parse_the_vcs_log_into_an_array(TypeInterface $vcs)
 {
     $returnData = array('foo bar', 'baz');
     $vcs->parse()->willReturn($returnData);
     $this->parse()->shouldBe($returnData);
 }
コード例 #2
0
ファイル: Parser.php プロジェクト: voodoo-mobile/readmegen
 /**
  * Returns the date of the latter (--to) commit, in the format YYYY-MM-DD.
  * @return string
  */
 public function getToDate()
 {
     return $this->vcs->getToDate();
 }