2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * tests for correctness of SQL parser data
6 * @package phpMyAdmin-test
12 require_once 'libraries/sqlparser.data.php';
14 class PMA_SQL_parser_data_test
extends PHPUnit_Framework_TestCase
16 private function assertSorted($array)
20 $difference = array_diff_assoc($array, $copy);
21 $this->assertEquals($difference, array());
24 private function assertParserData($name)
26 $this->assertSorted($GLOBALS[$name]);
29 public function testPMA_SQPdata_function_name()
31 $this->assertParserData('PMA_SQPdata_function_name');
34 public function testPMA_SQPdata_column_attrib()
36 $this->assertParserData('PMA_SQPdata_column_attrib');
39 public function testPMA_SQPdata_reserved_word()
41 $this->assertParserData('PMA_SQPdata_reserved_word');
44 public function testPMA_SQPdata_forbidden_word()
46 $this->assertParserData('PMA_SQPdata_forbidden_word');
49 public function testPMA_SQPdata_column_type()
51 $this->assertParserData('PMA_SQPdata_column_type');