summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/tests/mysql_pdo_test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_mysql/tests/mysql_pdo_test.inc')
-rw-r--r--ext/pdo_mysql/tests/mysql_pdo_test.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/pdo_mysql/tests/mysql_pdo_test.inc b/ext/pdo_mysql/tests/mysql_pdo_test.inc
index aa98d1464a..7367919338 100644
--- a/ext/pdo_mysql/tests/mysql_pdo_test.inc
+++ b/ext/pdo_mysql/tests/mysql_pdo_test.inc
@@ -158,5 +158,12 @@ class MySQLPDOTest extends PDOTest {
return (bool)preg_match('/Client API version.*mysqlnd/', $tmp);
}
+ static function dropTestTable($db = NULL) {
+ if (is_null($db))
+ $db = self::factory();
+
+ $db->exec('DROP TABLE IF EXISTS test');
+ }
+
}
-?>
+?> \ No newline at end of file