Fix array access syntax for older PHP

There was a syntax error when running tests in PHP 5.3.10.
Merge pull request #6812 from owncloud/tests-fixcachesyntaxforoldphp

Fix array access syntax for older PHP