Skip to content

Commit

Permalink
Enable tests with memcached extension too.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jul 5, 2016
1 parent 838dc81 commit f58afe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/Cache/test/Horde/Cache/MemcacheTest.php
Expand Up @@ -27,7 +27,7 @@ protected function _getCache($params = array())
$this->reason = 'Horde_Memcache not installed';
return;
}
if (!extension_loaded('memcache')) {
if (!(extension_loaded('memcache') || extension_loaded('memcached'))) {
$this->reason = 'Memcache extension not loaded';
return;
}
Expand Down
Expand Up @@ -26,7 +26,7 @@ class Horde_HashTable_Driver_MemcacheTest extends Horde_HashTable_Driver_TestBas
{
public static function setUpBeforeClass()
{
if (extension_loaded('memcache') &&
if ((extension_loaded('memcache') || extension_loaded('memcached')) &&
($config = self::getConfig('HASHTABLE_MEMCACHE_TEST_CONFIG', __DIR__ . '/..')) &&
isset($config['hashtable']['memcache'])) {
$memcache = new Horde_Memcache(
Expand Down

0 comments on commit f58afe0

Please sign in to comment.