diff --git a/test/libraries/common/PMA_extractFieldSpec_test.php b/test/libraries/common/PMA_extractFieldSpec_test.php new file mode 100644 index 0000000000..de77f69e87 --- /dev/null +++ b/test/libraries/common/PMA_extractFieldSpec_test.php @@ -0,0 +1,44 @@ + +assertEquals($out, PMA_extractFieldSpec($in)); + } + + public function provider() + { + return array( + 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'), + ), + ), + ); + } +}