You are here

public function CouchbaseCacheTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php \Doctrine\Tests\Common\Cache\CouchbaseCacheTest::setUp()

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php, line 12

Class

CouchbaseCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function setUp() {
  if (extension_loaded('couchbase')) {
    try {
      $this->couchbase = new Couchbase('127.0.0.1', 'Administrator', 'password', 'default');
    } catch (Exception $ex) {
      $this
        ->markTestSkipped('Could not instantiate the Couchbase cache because of: ' . $ex);
    }
  }
  else {
    $this
      ->markTestSkipped('The ' . __CLASS__ . ' requires the use of the couchbase extension');
  }
}