assertEquals($parsed_sql, $expected); } public function testParse_1() { $this->assertParser('SELECT 1;', array ( 'raw' => 'SELECT 1;', 0 => array ( 'type' => 'alpha_reservedWord', 'data' => 'SELECT', 'pos' => 6, 'forbidden' => true, ), 1 => array ( 'type' => 'digit_integer', 'data' => '1', 'pos' => 8, ), 2 => array ( 'type' => 'punct_queryend', 'data' => ';', 'pos' => 0, ), 'len' => 3, )); } } ?>