public function RedisCacheTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php \Doctrine\Tests\Common\Cache\RedisCacheTest::setUp()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ RedisCacheTest.php, line 12
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function setUp() {
if (extension_loaded('redis')) {
$this->_redis = new \Redis();
$ok = @$this->_redis
->connect('127.0.0.1');
if (!$ok) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
}
}
else {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
}
}