From a5b06b346828dcd024bbfe77919f84210090dac1 Mon Sep 17 00:00:00 2001 From: Qiang Xue <qiang.xue@gmail.com> Date: Sat, 6 Sep 2014 20:22:28 -0400 Subject: [PATCH] Mark tests with problematic DBMS as skipped. --- tests/unit/framework/db/DatabaseTestCase.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/framework/db/DatabaseTestCase.php b/tests/unit/framework/db/DatabaseTestCase.php index 54c06ec..64675fa 100644 --- a/tests/unit/framework/db/DatabaseTestCase.php +++ b/tests/unit/framework/db/DatabaseTestCase.php @@ -51,7 +51,12 @@ abstract class DatabaseTestCase extends TestCase } else { $fixture = null; } - return $this->db = $this->prepareDatabase($config, $fixture, $open); + try { + $this->db = $this->prepareDatabase($config, $fixture, $open); + } catch (\Exception $e) { + $this->markTestSkipped("Something wrong when preparing database: " . $e->getMessage()); + } + return $this->db; } public function prepareDatabase($config, $fixture, $open = true) -- libgit2 0.27.1