diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-01-07 16:45:05 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-01-07 16:45:05 +0000 |
| commit | 5bcdfc98762e27505526568ee9ad3b742a00e726 (patch) | |
| tree | cfd1cd634dec05f13acfc37df52cd735967c5f6d /vendor/symfony/cache/Tests | |
| parent | 25366223eb30b309b137279bf74b779083e0a64e (diff) | |
| download | webtrees-5bcdfc98762e27505526568ee9ad3b742a00e726.tar.gz webtrees-5bcdfc98762e27505526568ee9ad3b742a00e726.tar.bz2 webtrees-5bcdfc98762e27505526568ee9ad3b742a00e726.zip | |
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/cache/Tests')
5 files changed, 12 insertions, 10 deletions
diff --git a/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php b/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php index 72d143e3c0..e473c7b084 100644 --- a/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php +++ b/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php @@ -34,6 +34,7 @@ abstract class AdapterTestCase extends CachePoolTest } $cache = $this->createCachePool(); + $cache->clear(); $value = mt_rand(); diff --git a/vendor/symfony/cache/Tests/Adapter/PhpArrayAdapterTest.php b/vendor/symfony/cache/Tests/Adapter/PhpArrayAdapterTest.php index 96e63e64e3..1a6898de58 100644 --- a/vendor/symfony/cache/Tests/Adapter/PhpArrayAdapterTest.php +++ b/vendor/symfony/cache/Tests/Adapter/PhpArrayAdapterTest.php @@ -146,13 +146,13 @@ class PhpArrayAdapterWrapper extends PhpArrayAdapter public function save(CacheItemInterface $item) { - \call_user_func(\Closure::bind(function () use ($item) { + (\Closure::bind(function () use ($item) { $key = $item->getKey(); $this->keys[$key] = $id = \count($this->values); $this->data[$key] = $this->values[$id] = $item->get(); $this->warmUp($this->data); list($this->keys, $this->values) = eval(substr(file_get_contents($this->file), 6)); - }, $this, PhpArrayAdapter::class)); + }, $this, PhpArrayAdapter::class))(); return true; } diff --git a/vendor/symfony/cache/Tests/Adapter/SimpleCacheAdapterTest.php b/vendor/symfony/cache/Tests/Adapter/SimpleCacheAdapterTest.php index 460f3b0954..089a4f33fa 100644 --- a/vendor/symfony/cache/Tests/Adapter/SimpleCacheAdapterTest.php +++ b/vendor/symfony/cache/Tests/Adapter/SimpleCacheAdapterTest.php @@ -11,8 +11,9 @@ namespace Symfony\Component\Cache\Tests\Adapter; +use Symfony\Component\Cache\Adapter\FilesystemAdapter; use Symfony\Component\Cache\Adapter\SimpleCacheAdapter; -use Symfony\Component\Cache\Simple\FilesystemCache; +use Symfony\Component\Cache\Simple\Psr6Cache; /** * @group time-sensitive @@ -25,6 +26,6 @@ class SimpleCacheAdapterTest extends AdapterTestCase public function createCachePool($defaultLifetime = 0) { - return new SimpleCacheAdapter(new FilesystemCache(), '', $defaultLifetime); + return new SimpleCacheAdapter(new Psr6Cache(new FilesystemAdapter()), '', $defaultLifetime); } } diff --git a/vendor/symfony/cache/Tests/CacheItemTest.php b/vendor/symfony/cache/Tests/CacheItemTest.php index 6049f3ec9b..395c003bd3 100644 --- a/vendor/symfony/cache/Tests/CacheItemTest.php +++ b/vendor/symfony/cache/Tests/CacheItemTest.php @@ -62,9 +62,9 @@ class CacheItemTest extends TestCase $this->assertSame($item, $item->tag('foo')); $this->assertSame($item, $item->tag(array('bar', 'baz'))); - \call_user_func(\Closure::bind(function () use ($item) { + (\Closure::bind(function () use ($item) { $this->assertSame(array('foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz'), $item->newMetadata[CacheItem::METADATA_TAGS]); - }, $this, CacheItem::class)); + }, $this, CacheItem::class))(); } /** diff --git a/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php b/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php index e0c7285802..724744cb9a 100644 --- a/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php +++ b/vendor/symfony/cache/Tests/Simple/PhpArrayCacheTest.php @@ -134,11 +134,11 @@ class PhpArrayCacheWrapper extends PhpArrayCache public function set($key, $value, $ttl = null) { - \call_user_func(\Closure::bind(function () use ($key, $value) { + (\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)); + }, $this, PhpArrayCache::class))(); return true; } @@ -148,13 +148,13 @@ class PhpArrayCacheWrapper extends PhpArrayCache if (!\is_array($values) && !$values instanceof \Traversable) { return parent::setMultiple($values, $ttl); } - \call_user_func(\Closure::bind(function () use ($values) { + (\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)); + }, $this, PhpArrayCache::class))(); return true; } |
