getLisphpColumn() public method

public getLisphpColumn ( )
コード例 #1
0
ファイル: lis.php プロジェクト: huwenlong92/lisphp
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";
}
コード例 #2
0
 public function testColumn()
 {
     $this->markTestIncomplete('Somebody please debug this, I have no clue what is going on.');
     // todo
     $this->assertEquals(38, $this->exception->getLisphpColumn());
     $e = new Lisphp_ParsingException('{', 0);
     $this->assertEquals(1, $e->getLisphpColumn());
 }
コード例 #3
0
 public function testColumn()
 {
     $this->assertEquals(38, $this->exception->getLisphpColumn());
     $e = new Lisphp_ParsingException('{', 0);
     $this->assertEquals(1, $e->getLisphpColumn());
 }