summaryrefslogtreecommitdiff
path: root/tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php
blob: e47914aaa887176ce2498a3f85895447adc739d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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;port=3307', 'test5','test5');
		return new TMysqlMetaData($conn);
	}

	function test()
	{
		$this->mysql_meta_data()->getTableInfo("tests.table1");
	}
}