diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-01-17 13:32:38 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-01-17 13:32:38 +0100 |
commit | 642d8e370e366bab6734a07aca78c4d0c8eca1c0 (patch) | |
tree | d1275ce9c9c34be2df4f4febd4cac2113e971946 | |
parent | ec7c339930618726f2f87899546ab7bc80ca96d5 (diff) | |
download | nextcloud-server-642d8e370e366bab6734a07aca78c4d0c8eca1c0.tar.gz nextcloud-server-642d8e370e366bab6734a07aca78c4d0c8eca1c0.zip |
Dont use php5.4 only features
-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..5ef1ed7ca30 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']); + $cacheResult = $this->cache->get($file1); + $this->assertEquals(1025, $cacheResult['size']); + $this->assertEquals(916, $cacheResult['unencrypted_size']); $this->cache->remove($file2); $this->cache->remove($file3); |