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