diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-01-17 12:29:21 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-01-17 12:31:22 +0100 |
commit | 23e6578601a8aff24b57c1115e7db03a5f7c29dd (patch) | |
tree | 0575964bf7e4983ca4499b8d12bd6d2288071dd2 | |
parent | 16033c81235e76af2900fdc8fd9340546301d45c (diff) | |
download | nextcloud-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.
-rw-r--r-- | tests/lib/files/cache/cache.php | 5 |
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); |