diff options
| author | wei <> | 2007-04-12 08:05:03 +0000 | 
|---|---|---|
| committer | wei <> | 2007-04-12 08:05:03 +0000 | 
| commit | dc3bf922d9715bfd1b2105be04a9aabc84a1d7d4 (patch) | |
| tree | ff97362f718b6ebb482128527402efe03fe1ac43 /tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php | |
| parent | 6178a99df0c722581bc61e35559ac5f8af1cc6e8 (diff) | |
Refactor and add TTableGateway, System.Data.Common, System.Data.DataGateway
Diffstat (limited to 'tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php')
| -rw-r--r-- | tests/simple_unit/DbCommon/CommandBuilderMysqlTest.php | 19 | 
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 | 
