summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php')
-rw-r--r--vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php b/vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php
index 09ba6e444c..61b039b57b 100644
--- a/vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php
+++ b/vendor/symfony/cache/Tests/Adapter/ChainAdapterTest.php
@@ -27,10 +27,10 @@ class ChainAdapterTest extends AdapterTestCase
public function createCachePool($defaultLifetime = 0, $testMethod = null)
{
if ('testGetMetadata' === $testMethod) {
- return new ChainAdapter(array(new FilesystemAdapter('', $defaultLifetime)), $defaultLifetime);
+ return new ChainAdapter([new FilesystemAdapter('', $defaultLifetime)], $defaultLifetime);
}
- return new ChainAdapter(array(new ArrayAdapter($defaultLifetime), new ExternalAdapter(), new FilesystemAdapter('', $defaultLifetime)), $defaultLifetime);
+ return new ChainAdapter([new ArrayAdapter($defaultLifetime), new ExternalAdapter(), new FilesystemAdapter('', $defaultLifetime)], $defaultLifetime);
}
/**
@@ -39,7 +39,7 @@ class ChainAdapterTest extends AdapterTestCase
*/
public function testEmptyAdaptersException()
{
- new ChainAdapter(array());
+ new ChainAdapter([]);
}
/**
@@ -48,7 +48,7 @@ class ChainAdapterTest extends AdapterTestCase
*/
public function testInvalidAdapterException()
{
- new ChainAdapter(array(new \stdClass()));
+ new ChainAdapter([new \stdClass()]);
}
public function testPrune()
@@ -57,18 +57,18 @@ class ChainAdapterTest extends AdapterTestCase
$this->markTestSkipped($this->skippedTests[__FUNCTION__]);
}
- $cache = new ChainAdapter(array(
+ $cache = new ChainAdapter([
$this->getPruneableMock(),
$this->getNonPruneableMock(),
$this->getPruneableMock(),
- ));
+ ]);
$this->assertTrue($cache->prune());
- $cache = new ChainAdapter(array(
+ $cache = new ChainAdapter([
$this->getPruneableMock(),
$this->getFailingPruneableMock(),
$this->getPruneableMock(),
- ));
+ ]);
$this->assertFalse($cache->prune());
}