summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php')
-rw-r--r--vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php33
1 files changed, 1 insertions, 32 deletions
diff --git a/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php b/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php
index ba4bde3139..5272604dc3 100644
--- a/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php
+++ b/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php
@@ -17,6 +17,7 @@ use Symfony\Component\Cache\Tests\Adapter\FilesystemAdapterTest;
/**
* @group time-sensitive
+ * @group legacy
*/
class PhpArrayCacheTest extends CacheTestCase
{
@@ -127,35 +128,3 @@ class PhpArrayCacheTest extends CacheTestCase
$this->assertSame($expected, $values, 'Warm up should create a PHP file that OPCache can load in memory');
}
}
-
-class PhpArrayCacheWrapper extends PhpArrayCache
-{
- protected $data = [];
-
- public function set($key, $value, $ttl = null)
- {
- (\Closure::bind(function () use ($key, $value) {
- $this->data[$key] = $value;
- $this->warmUp($this->data);
- list($this->keys, $this->values) = eval(substr(file_get_contents($this->file), 6));
- }, $this, PhpArrayCache::class))();
-
- return true;
- }
-
- public function setMultiple($values, $ttl = null)
- {
- if (!\is_array($values) && !$values instanceof \Traversable) {
- return parent::setMultiple($values, $ttl);
- }
- (\Closure::bind(function () use ($values) {
- foreach ($values as $key => $value) {
- $this->data[$key] = $value;
- }
- $this->warmUp($this->data);
- list($this->keys, $this->values) = eval(substr(file_get_contents($this->file), 6));
- }, $this, PhpArrayCache::class))();
-
- return true;
- }
-}