summaryrefslogtreecommitdiff
path: root/tests/unit/Data/DbCommon/CommandBuilderMysqlTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Data/DbCommon/CommandBuilderMysqlTest.php')
-rw-r--r--tests/unit/Data/DbCommon/CommandBuilderMysqlTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/unit/Data/DbCommon/CommandBuilderMysqlTest.php b/tests/unit/Data/DbCommon/CommandBuilderMysqlTest.php
new file mode 100644
index 00000000..77e58019
--- /dev/null
+++ b/tests/unit/Data/DbCommon/CommandBuilderMysqlTest.php
@@ -0,0 +1,20 @@
+<?php
+Prado::using('System.Data.*');
+Prado::using('System.Data.Common.Mysql.TMysqlMetaData');
+
+/**
+ * @package System.Data.DbCommon
+ */
+class CommandBuilderMysqlTest extends PHPUnit_Framework_TestCase
+{
+ function mysql_meta_data()
+ {
+ $conn = new TDbConnection('mysql:host=localhost;dbname=tests;port=3307', 'test5','test5');
+ return new TMysqlMetaData($conn);
+ }
+
+ function test()
+ {
+ $this->mysql_meta_data()->getTableInfo("tests.table1");
+ }
+}