PHPSQLParser\Test\Parser\CommentsTest::testComments8 PHP Method

testComments8() public method

public testComments8 ( )
    public function testComments8()
    {
        $sql = 'INSERT INTO a (id) 
                    VALUES (1) -- inline comment in VALUES section';
        $p = $this->parser->parse($sql);
        $expected = getExpectedValue(dirname(__FILE__), 'comment8.serialized');
        $this->assertEquals($expected, $p, 'inline comment in VALUES section');
    }