Skip QB tests for Postgres if the class isn't loaded
This commit is contained in:
parent
6a50404d54
commit
348967d17a
@ -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"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user