PhpParser\ErrorTest::testUnknownLine PHP Method

testUnknownLine() public method

public testUnknownLine ( )
    public function testUnknownLine()
    {
        $error = new Error('Some error');
        $this->assertSame(-1, $error->getStartLine());
        $this->assertSame(-1, $error->getEndLine());
        $this->assertSame('Some error on unknown line', $error->getMessage());
    }