summaryrefslogtreecommitdiff
path: root/tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php')
-rw-r--r--tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php b/tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php
new file mode 100644
index 00000000..500d5277
--- /dev/null
+++ b/tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php
@@ -0,0 +1,19 @@
+<?php
+Prado::using('System.Data.*');
+Prado::using('System.Data.Common.Mysql.TMysqlMetaData');
+
+class CommandBuilderMysqlTest extends UnitTestCase
+{
+ function mysql_meta_data()
+ {
+ $conn = new TDbConnection('mysql:host=localhost;dbname=tests', 'test','test');
+ return new TMysqlMetaData($conn);
+ }
+
+ function test()
+ {
+ $this->mysql_meta_data()->getTableInfo("tests.table1");
+ }
+}
+
+?> \ No newline at end of file