mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
test if class exists
This commit is contained in:
@@ -27,6 +27,10 @@ if (MemCacheEnable == true) {
|
||||
{
|
||||
if (MemCacheEnable != true) {
|
||||
$this->markTestSkipped('Memcache tests are disabled');
|
||||
} else {
|
||||
if (!class_exists('Memcache')) {
|
||||
$this->markTestSkipped('Memcache not available');
|
||||
}
|
||||
}
|
||||
$this->setUpSmarty(dirname(__FILE__));
|
||||
parent::setUp();
|
||||
|
Reference in New Issue
Block a user