summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-01-17 12:29:21 +0100
committerVincent Petry <pvince81@owncloud.com>2014-01-17 12:31:22 +0100
commit23e6578601a8aff24b57c1115e7db03a5f7c29dd (patch)
tree0575964bf7e4983ca4499b8d12bd6d2288071dd2 /tests
parent16033c81235e76af2900fdc8fd9340546301d45c (diff)
downloadnextcloud-server-23e6578601a8aff24b57c1115e7db03a5f7c29dd.tar.gz
nextcloud-server-23e6578601a8aff24b57c1115e7db03a5f7c29dd.zip
Fix array access syntax for older PHP
There was a syntax error when running tests in PHP 5.3.10.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/cache/cache.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php
index 7d9329328a3..5d876932479 100644
--- a/tests/lib/files/cache/cache.php
+++ b/tests/lib/files/cache/cache.php
@@ -169,8 +169,9 @@ class Cache extends \PHPUnit_Framework_TestCase {
$this->assertEquals(916, $this->cache->calculateFolderSize($file1));
// direct cache entry retrieval returns the original values
- $this->assertEquals(1025, $this->cache->get($file1)['size']);
- $this->assertEquals(916, $this->cache->get($file1)['unencrypted_size']);
+ $entry = $this->cache->get($file1);
+ $this->assertEquals(1025, $entry['size']);
+ $this->assertEquals(916, $entry['unencrypted_size']);
$this->cache->remove($file2);
$this->cache->remove($file3);