From cbcde38db1d9c29f58bc86436f8b6f3bbe0717e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 4 Aug 2011 16:07:13 +0200 Subject: [PATCH] Add more testcases --- .../common/PMA_extractFieldSpec_test.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/libraries/common/PMA_extractFieldSpec_test.php b/test/libraries/common/PMA_extractFieldSpec_test.php index de77f69e87..e778de7b06 100644 --- a/test/libraries/common/PMA_extractFieldSpec_test.php +++ b/test/libraries/common/PMA_extractFieldSpec_test.php @@ -39,6 +39,30 @@ class PMA_extractFieldSpec_test extends PHPUnit_Extensions_OutputTestCase 'enum_set_values' => array('a', 'b'), ), ), + array( + "SET('\'a', 'b')", + array( + 'type' => 'set', + 'short_type' => 'set', + 'binary' => false, + 'unsigned' => false, + 'zerofill' => false, + 'spec_in_brackets' => "'\'a', 'b'", + 'enum_set_values' => array("'a", 'b'), + ), + ), + array( + "INT UNSIGNED zerofill", + array( + 'type' => 'INT UNSIGNED zerofill', + 'short_type' => 'INT', + 'binary' => false, + 'unsigned' => true, + 'zerofill' => true, + 'spec_in_brackets' => '', + 'enum_set_values' => array(), + ), + ), ); } }