Example #1
0
 public function buildElephantFile($file)
 {
     $file = new \SplFileInfo($file);
     $resultFile = $file->getPath() . DIRECTORY_SEPARATOR . $file->getBasename('.elph') . '.php';
     $rewriter = new Rewriter($resultFile);
     $rewriter->save();
     return $resultFile;
 }
 public function rewriteTest($expected, $source)
 {
     $this->assertEquals($expected, $this->rewriter->rewrite($source));
 }