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

testComments4() public method

public testComments4 ( )
    public function testComments4()
    {
        $sql = 'SELECT a
                    FROM test
                    WHERE id = 3 -- inline comment in WHERE section
                    AND b > 4';
        $p = $this->parser->parse($sql);
        $expected = getExpectedValue(dirname(__FILE__), 'comment4.serialized');
        $this->assertEquals($expected, $p, 'inline comment in WHERE section');
    }