public function MemcacheCacheTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcacheCacheTest.php \Doctrine\Tests\Common\Cache\MemcacheCacheTest::setUp()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ MemcacheCacheTest.php, line 12
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function setUp() {
if (!extension_loaded('memcache')) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of memcache');
}
$this->memcache = new Memcache();
if (@$this->memcache
->connect('localhost', 11211) === false) {
unset($this->memcache);
$this
->markTestSkipped('The ' . __CLASS__ . ' cannot connect to memcache');
}
}