예제 #1
0
 /**
  * @param string $spec
  *
  * @return string
  */
 function transform($spec)
 {
     return $this->rewriter->rewrite($spec);
 }
 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');
 }