summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Tests/CacheItemTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Tests/CacheItemTest.php')
-rw-r--r--vendor/symfony/cache/Tests/CacheItemTest.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/vendor/symfony/cache/Tests/CacheItemTest.php b/vendor/symfony/cache/Tests/CacheItemTest.php
index 395c003bd3..0e3f4b9a73 100644
--- a/vendor/symfony/cache/Tests/CacheItemTest.php
+++ b/vendor/symfony/cache/Tests/CacheItemTest.php
@@ -33,23 +33,23 @@ class CacheItemTest extends TestCase
public function provideInvalidKey()
{
- return array(
- array(''),
- array('{'),
- array('}'),
- array('('),
- array(')'),
- array('/'),
- array('\\'),
- array('@'),
- array(':'),
- array(true),
- array(null),
- array(1),
- array(1.1),
- array(array(array())),
- array(new \Exception('foo')),
- );
+ return [
+ [''],
+ ['{'],
+ ['}'],
+ ['('],
+ [')'],
+ ['/'],
+ ['\\'],
+ ['@'],
+ [':'],
+ [true],
+ [null],
+ [1],
+ [1.1],
+ [[[]]],
+ [new \Exception('foo')],
+ ];
}
public function testTag()
@@ -60,10 +60,10 @@ class CacheItemTest extends TestCase
$r->setValue($item, true);
$this->assertSame($item, $item->tag('foo'));
- $this->assertSame($item, $item->tag(array('bar', 'baz')));
+ $this->assertSame($item, $item->tag(['bar', 'baz']));
(\Closure::bind(function () use ($item) {
- $this->assertSame(array('foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz'), $item->newMetadata[CacheItem::METADATA_TAGS]);
+ $this->assertSame(['foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz'], $item->newMetadata[CacheItem::METADATA_TAGS]);
}, $this, CacheItem::class))();
}
@@ -93,6 +93,6 @@ class CacheItemTest extends TestCase
$r->setAccessible(true);
$r->setValue($item, 'foo');
- $item->tag(array());
+ $item->tag([]);
}
}