function Lisphp_printParsingError(Lisphp_ParsingException $e) { echo $e->getMessage(), "\n"; $lines = explode("\n", $e->code); echo $lines[$e->getLisphpLine() - 1], "\n"; echo str_repeat(' ', $e->getLisphpColumn() - 1), "^\n"; }
public function testFile() { $this->assertEquals('test.lisphp', $this->exception->getLisphpFile()); $e = new Lisphp_ParsingException('(echo 1', 7); $this->assertEquals('', $e->getLisphpFile()); }