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

testComments1() public method

public testComments1 ( )
    public function testComments1()
    {
        $sql = 'SELECT a, -- inline comment in SELECT section
                        b 
                    FROM test';
        $p = $this->parser->parse($sql);
        $expected = getExpectedValue(dirname(__FILE__), 'comment1.serialized');
        $this->assertEquals($expected, $p, 'inline comment in SELECT section');
    }