public function PredisCacheTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PredisCacheTest.php \Doctrine\Tests\Common\Cache\PredisCacheTest::setUp()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ PredisCacheTest.php, line 14
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function setUp() {
if (!class_exists('Predis\\Client')) {
$this
->markTestSkipped('Predis\\Client is missing. Make sure to "composer install" to have all dev dependencies.');
}
$this->client = new Client();
try {
$this->client
->connect();
} catch (ConnectionException $e) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
}
}