Ejemplo n.º 1
0
 public static function parseEcho($line)
 {
     $echo = FindEcho::run($line);
     if (is_array($echo)) {
         $line = ParseEcho::run($echo);
     }
     return $line;
 }
Ejemplo n.º 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);
 }