芝麻web文件管理V1.00
编辑当前文件:/home/strato/chroot/opt/RZphp80/includes/test/MDB_QueryTool/tests/SetDbInstanceTest.php
setDbInstance($db); $dbActual = $qt->getDbInstance(); $this->assertEquals($db->fetchmode, $dbActual->fetchmode); } /** * Make sure the way we did it before works too. * Passing the DB_DSN to the constructor should also work. * And retreiving the db instance should result in a sub class * of MDB_common. */ function test_oldWay() { $qt = new MDB_QueryTool(unserialize(MDB_QUERYTOOL_TEST_DSN), array(), 2); $db = $qt->getDbInstance(); $this->assertInstanceOf('MDB2_Driver_Common', $db); } } ?>