芝麻web文件管理V1.00
编辑当前文件:/home/strato/chroot/opt/RZphp80/includes/test/MDB_QueryTool/tests/TestCase.php
db->phptype])) { die("sql.php lacks queries for $querytool->db->phptype\n"); } foreach ($dbStructure[$querytool->db->phptype]['setUp'] as $aQuery) { if (MDB2::isError($ret=$querytool->db->query($aQuery))) { $this->markTestSkipped($ret->getUserInfo()); } } } protected function setUp() { foreach ($GLOBALS['allTables'] as $aTable) { $tableObj = new tests_Common($aTable); $tableObj->removeAll(); } } public static function tearDownAfterClass() { require dirname(__FILE__) . '/sql.php'; $querytool = new tests_Common(); foreach ($dbStructure[$querytool->db->phptype]['tearDown'] as $aQuery) { $querytool->db->query($aQuery); } } protected function assertStringEquals($expected,$actual,$msg='') { $expected = '~^\s*'.preg_replace('~\s+~','\s*',trim(preg_quote($expected))).'\s*$~i'; $this->assertRegExp($expected,$actual,$msg); } }