You are here

public function RiakCacheTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Cache

Code

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');
  }
}