private function checkDeps() { try { $cache = new WURFL_Storage_Memcache(); if (!$cache->isWURFLLoaded()) { $this->markTestSkipped("PHP extension 'memcache' must be loaded and a local memcache server running to run this test."); } } catch (\Exception $e) { $this->markTestSkipped("PHP extension 'memcache' must be loaded and a local memcache server running to run this test."); } if (!extension_loaded('memcache')) { $this->markTestSkipped("PHP extension 'memcache' must be loaded and a local memcache server running to run this test."); } }