Skip Postgres tests if the class isn't loaded

This commit is contained in:
Timothy Warren 2014-02-17 19:12:53 -05:00
parent fa3c3efb38
commit 2465941fdf
1 changed files with 7 additions and 0 deletions

View File

@ -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"))
{