summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-06-03 14:19:10 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-06-03 14:19:10 +0100
commit69c8d4f5c90cef75da102f92e4e992d03a8f1cd8 (patch)
tree4f956848961891482b64ee2cd5c8d7290936e354 /vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php
parent425f99bc29ab9e477e5407b5c86da5c85ba47461 (diff)
downloadwebtrees-69c8d4f5c90cef75da102f92e4e992d03a8f1cd8.tar.gz
webtrees-69c8d4f5c90cef75da102f92e4e992d03a8f1cd8.tar.bz2
webtrees-69c8d4f5c90cef75da102f92e4e992d03a8f1cd8.zip
:Update vendor dependencies
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;
- }
-}