public function RiakCacheTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RiakCacheTest.php \Doctrine\Tests\Common\Cache\RiakCacheTest::setUp()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ RiakCacheTest.php, line 30
Class
- RiakCacheTest
- RiakCache test
Namespace
Doctrine\Tests\Common\CacheCode
public function setUp() {
if (!extension_loaded('riak')) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of Riak');
}
try {
$this->connection = new Connection('127.0.0.1', 8087);
$this->bucket = new Bucket($this->connection, 'test');
} catch (Exception\RiakException $e) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of Riak');
}
}