PhpParser\ErrorTest::testSetMessageAndLine PHP Method

testSetMessageAndLine() public method

public testSetMessageAndLine ( Error $error )
$error Error
    public function testSetMessageAndLine(Error $error)
    {
        $error->setRawMessage('Some other error');
        $this->assertSame('Some other error', $error->getRawMessage());
        $error->setStartLine(15);
        $this->assertSame(15, $error->getStartLine());
        $this->assertSame('Some other error on line 15', $error->getMessage());
    }