コード例 #1
0
ファイル: TypeHintRewriter.php プロジェクト: nix9/laracasts
 /**
  * @param string $spec
  *
  * @return string
  */
 function transform($spec)
 {
     return $this->rewriter->rewrite($spec);
 }
コード例 #2
0
 function it_delegates_transforming_to_rewriter(TypeHintRewriter $rewriter)
 {
     $rewriter->rewrite('<?php echo "hello world";')->willReturn('hello world');
     $this->transform('<?php echo "hello world";')->shouldReturn('hello world');
 }