summaryrefslogtreecommitdiff
path: root/tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php
blob: 500d527777bd7ab948137750421e08663b53c2a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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");
	}
}

?>