예제 #1
0
 public static function parseEcho($line)
 {
     $echo = FindEcho::run($line);
     if (is_array($echo)) {
         $line = ParseEcho::run($echo);
     }
     return $line;
 }
예제 #2
0
 public function testEsclaimLongEscaped()
 {
     $line = ['start' => '<p>Start of string ', 'echo' => 'foo', 'escape' => '!escape', 'end' => ' end of line</p>'];
     $return = ParseEcho::run($line);
     $this->assertEquals("<p>Start of string <?= \$foo; ?> end of line</p>", $return);
 }