Security update for Core, with self-updated composer
[yaffs-website] / vendor / doctrine / cache / tests / Doctrine / Tests / Common / Cache / CouchbaseCacheTest.php
diff --git a/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php b/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php
new file mode 100644 (file)
index 0000000..f42b3a7
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+namespace Doctrine\Tests\Common\Cache;
+
+use Couchbase;
+use Doctrine\Common\Cache\CouchbaseCache;
+
+/**
+ * @requires extension couchbase
+ */
+class CouchbaseCacheTest extends CacheTest
+{
+    private $couchbase;
+
+    protected function setUp()
+    {
+        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);
+        }
+    }
+
+    protected function _getCacheDriver()
+    {
+        $driver = new CouchbaseCache();
+        $driver->setCouchbase($this->couchbase);
+        return $driver;
+    }
+}
\ No newline at end of file