summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php')
-rw-r--r--vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php b/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php
index e473c7b084..8a7d147808 100644
--- a/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php
+++ b/vendor/symfony/cache/Tests/Adapter/AdapterTestCase.php
@@ -77,10 +77,10 @@ abstract class AdapterTestCase extends CachePoolTest
$item = $cache->getItem('foo');
- $expected = array(
+ $expected = [
CacheItem::METADATA_EXPIRY => 9.5 + time(),
CacheItem::METADATA_CTIME => 1000,
- );
+ ];
$this->assertEquals($expected, $item->getMetadata(), 'Item metadata should embed expiry and ctime.', .6);
}
@@ -139,11 +139,11 @@ abstract class AdapterTestCase extends CachePoolTest
$item = $cache->getItem('foo');
$this->assertFalse($item->isHit());
- foreach ($cache->getItems(array('foo')) as $item) {
+ foreach ($cache->getItems(['foo']) as $item) {
}
$cache->save($item->set(new NotUnserializable()));
- foreach ($cache->getItems(array('foo')) as $item) {
+ foreach ($cache->getItems(['foo']) as $item) {
}
$this->assertFalse($item->isHit());
}