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

testComments9() public method

public testComments9 ( )
    public function testComments9()
    {
        $sql = 'INSERT INTO a (id) -- inline comment in INSERT section;
                    SELECT id -- inline comment in SELECT section
                    FROM x';
        $p = $this->parser->parse($sql);
        $expected = getExpectedValue(dirname(__FILE__), 'comment9.serialized');
        $this->assertEquals($expected, $p, 'inline comment in SELECT section');
    }