Skip QB tests for Postgres if the class isn't loaded

This commit is contained in:
Timothy Warren 2014-02-17 19:34:47 -05:00
parent 6a50404d54
commit 348967d17a

View File

@ -19,6 +19,12 @@ class PgSQLQBTest extends QBTest {
public function setUp() 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 // Attempt to connect, if there is a test config file
if (is_file(QBASE_DIR . "test_config.json")) if (is_file(QBASE_DIR . "test_config.json"))
{ {