From 348967d17a59d869b647bc5e4350b35b7b892861 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Mon, 17 Feb 2014 19:34:47 -0500 Subject: [PATCH] Skip QB tests for Postgres if the class isn't loaded --- tests/databases/pgsql/PgSQLQBTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/databases/pgsql/PgSQLQBTest.php b/tests/databases/pgsql/PgSQLQBTest.php index 3db3bc6..a176799 100644 --- a/tests/databases/pgsql/PgSQLQBTest.php +++ b/tests/databases/pgsql/PgSQLQBTest.php @@ -19,6 +19,12 @@ class PgSQLQBTest extends QBTest { public function setUp() { + // If the database isn't installed, skip the tests + if ( ! class_exists("PgSQL")) + { + $this->markTestSkipped(); + } + // Attempt to connect, if there is a test config file if (is_file(QBASE_DIR . "test_config.json")) {