Security update for Core, with self-updated composer
[yaffs-website] / vendor / doctrine / cache / tests / Doctrine / Tests / Common / Cache / ZendDataCacheTest.php
diff --git a/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ZendDataCacheTest.php b/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ZendDataCacheTest.php
new file mode 100644 (file)
index 0000000..b39b9e8
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+namespace Doctrine\Tests\Common\Cache;
+
+use Doctrine\Common\Cache\ZendDataCache;
+
+/**
+ * @requires function zend_shm_cache_fetch
+ */
+class ZendDataCacheTest extends CacheTest
+{
+    protected function setUp()
+    {
+        if ('apache2handler' !== php_sapi_name()) {
+            $this->markTestSkipped('Zend Data Cache only works in apache2handler SAPI.');
+        }
+    }
+
+    public function testGetStats()
+    {
+        $cache = $this->_getCacheDriver();
+        $stats = $cache->getStats();
+
+        $this->assertNull($stats);
+    }
+
+    protected function _getCacheDriver()
+    {
+        return new ZendDataCache();
+    }
+}
\ No newline at end of file