Skip Postgres tests if the class isn't loaded
This commit is contained in:
parent
fa3c3efb38
commit
2465941fdf
@ -22,6 +22,13 @@ class PgTest extends DBTest {
|
||||
|
||||
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