test if class exists

This commit is contained in:
uwetews
2015-12-31 06:32:20 +01:00
parent ffe0095b80
commit 3b5ff51e0e

View File

@@ -27,6 +27,10 @@ if (MemCacheEnable == true) {
{ {
if (MemCacheEnable != true) { if (MemCacheEnable != true) {
$this->markTestSkipped('Memcache tests are disabled'); $this->markTestSkipped('Memcache tests are disabled');
} else {
if (!class_exists('Memcache')) {
$this->markTestSkipped('Memcache not available');
}
} }
$this->setUpSmarty(dirname(__FILE__)); $this->setUpSmarty(dirname(__FILE__));
parent::setUp(); parent::setUp();