Version 1
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / Cache / PhpBackendTest.php
diff --git a/web/core/tests/Drupal/KernelTests/Core/Cache/PhpBackendTest.php b/web/core/tests/Drupal/KernelTests/Core/Cache/PhpBackendTest.php
new file mode 100644 (file)
index 0000000..486d2d4
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\KernelTests\Core\Cache;
+
+use Drupal\Core\Cache\PhpBackend;
+
+/**
+ * Unit test of the PHP cache backend using the generic cache unit test base.
+ *
+ * @group Cache
+ */
+class PhpBackendTest extends GenericCacheBackendUnitTestBase {
+
+  /**
+   * Creates a new instance of MemoryBackend.
+   *
+   * @return
+   *   A new MemoryBackend object.
+   */
+  protected function createCacheBackend($bin) {
+    $backend = new PhpBackend($bin, \Drupal::service('cache_tags.invalidator.checksum'));
+    return $backend;
+  }
+
+}