From 7ab207384a6d6bef8fd18b1fca65c3a7ec003eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 30 Aug 2010 15:18:30 +0200 Subject: [PATCH] Add testcase for validity of SQL parser data. --- test/AllTests.php | 1 + test/PMA_SQL_parser_data_test.php | 62 +++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 test/PMA_SQL_parser_data_test.php diff --git a/test/AllTests.php b/test/AllTests.php index b77f3ecfc..338f83d58 100644 --- a/test/AllTests.php +++ b/test/AllTests.php @@ -51,6 +51,7 @@ require_once './test/PMA_foreignKeySupported_test.php'; require_once './test/PMA_headerLocation_test.php'; require_once './test/PMA_Message_test.php'; require_once './test/PMA_whichCrlf_test.php'; +require_once './test/PMA_SQL_parser_data_test.php'; class AllTests { diff --git a/test/PMA_SQL_parser_data_test.php b/test/PMA_SQL_parser_data_test.php new file mode 100644 index 000000000..e8271639c --- /dev/null +++ b/test/PMA_SQL_parser_data_test.php @@ -0,0 +1,62 @@ +assertEquals($difference, array()); + } + + public function testPMA_SQPdata_function_name() + { + $this->assertSorted($GLOBALS['PMA_SQPdata_function_name']); + } + + public function testPMA_SQPdata_column_attrib() + { + $this->assertSorted($GLOBALS['PMA_SQPdata_column_attrib']); + } + + public function testPMA_SQPdata_reserved_word() + { + $this->assertSorted($GLOBALS['PMA_SQPdata_reserved_word']); + } + + public function testPMA_SQPdata_forbidden_word() + { + $this->assertSorted($GLOBALS['PMA_SQPdata_forbidden_word']); + } + + public function testPMA_SQPdata_column_type() + { + $this->assertSorted($GLOBALS['PMA_SQPdata_column_type']); + } + +} +?>