getLisphpLine() public method

public getLisphpLine ( )
Example #1
0
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 testLine()
 {
     $this->assertEquals(3, $this->exception->getLisphpLine());
     $e = new Lisphp_ParsingException('{', 0);
     $this->assertEquals(1, $e->getLisphpLine());
 }