[Pkg-owncloud-commits] [owncloud] 03/42: Fix array access syntax for older PHP

David Prévot taffit at moszumanska.debian.org
Wed Jan 22 21:21:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit bc22799160d403efc9522e27fb75f4b8155e7534
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri Jan 17 12:29:21 2014 +0100

    Fix array access syntax for older PHP
    
    There was a syntax error when running tests in PHP 5.3.10.
---
 tests/lib/files/cache/cache.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php
index 7d93293..5d87693 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list