Skip to content

Commit

Permalink
Fix skip messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 30, 2015
1 parent 67256a6 commit f8d811c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/Db/test/Horde/Db/Adapter/MysqlBase.php
Expand Up @@ -33,6 +33,7 @@ protected static function _available()

public static function setUpBeforeClass()
{
self::$_reason = 'The MySQL adapter is not available';
if (static::_available()) {
self::$_skip = false;
list($conn,) = static::_getConnection();
Expand Down
1 change: 1 addition & 0 deletions framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php
Expand Up @@ -26,6 +26,7 @@ class Horde_Db_Adapter_Pdo_PgsqlTest extends Horde_Db_Adapter_TestBase
{
public static function setUpBeforeClass()
{
self::$_reason = 'The pgsql adapter is not available';
if (extension_loaded('pdo') &&
in_array('pgsql', PDO::getAvailableDrivers())) {
self::$_skip = false;
Expand Down
1 change: 1 addition & 0 deletions framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php
Expand Up @@ -26,6 +26,7 @@ class Horde_Db_Adapter_Pdo_SqliteTest extends Horde_Db_Adapter_TestBase
{
public static function setUpBeforeClass()
{
self::$_reason = 'The sqlite adapter is not available';
if (extension_loaded('pdo') &&
in_array('sqlite', PDO::getAvailableDrivers())) {
self::$_skip = false;
Expand Down
2 changes: 1 addition & 1 deletion framework/Db/test/Horde/Db/Adapter/TestBase.php
Expand Up @@ -32,7 +32,7 @@ abstract class Horde_Db_Adapter_TestBase extends Horde_Test_Case

protected static $_skip = true;

protected static $_reason = 'The MySQL adapter is not available';
protected static $_reason;

protected $_conn;

Expand Down

0 comments on commit f8d811c

Please sign in to comment.