aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-10-20 20:43:26 +0200
committerGitHub <noreply@github.com>2016-10-20 20:43:26 +0200
commitc7ba73e6f48b3a69b4f692c739b8c53e18735235 (patch)
treed5a5c6322fcf7129abe394450d1ec00855c81f6c /tests
parent98c846456417989d995fe868731e2b1bd77f0f37 (diff)
parentef842ef20a9fb9330173b09c4f889bd2264c8f87 (diff)
downloadnextcloud-server-c7ba73e6f48b3a69b4f692c739b8c53e18735235.tar.gz
nextcloud-server-c7ba73e6f48b3a69b4f692c739b8c53e18735235.zip
Merge pull request #1824 from nextcloud/downstream-26423
Ensure $commands being an array
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/App/DependencyAnalyzerTest.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/lib/App/DependencyAnalyzerTest.php b/tests/lib/App/DependencyAnalyzerTest.php
index 684a1b52259..091479798b3 100644
--- a/tests/lib/App/DependencyAnalyzerTest.php
+++ b/tests/lib/App/DependencyAnalyzerTest.php
@@ -256,17 +256,18 @@ class DependencyAnalyzerTest extends TestCase {
* @return array
*/
function providesCommands() {
- return array(
- array(array(), null),
+ return [
+ [[], null],
// grep is known on linux
- array(array(), array(array('@attributes' => array('os' => 'Linux'), '@value' => 'grep'))),
+ [[], [['@attributes' => ['os' => 'Linux'], '@value' => 'grep']]],
// grepp is not known on linux
- array(array('The command line tool grepp could not be found'), array(array('@attributes' => array('os' => 'Linux'), '@value' => 'grepp'))),
+ [['The command line tool grepp could not be found'], [['@attributes' => ['os' => 'Linux'], '@value' => 'grepp']]],
// we don't care about tools on Windows - we are on Linux
- array(array(), array(array('@attributes' => array('os' => 'Windows'), '@value' => 'grepp'))),
+ [[], [['@attributes' => ['os' => 'Windows'], '@value' => 'grepp']]],
// grep is known on all systems
- array(array(), 'grep'),
- );
+ [[], 'grep'],
+ [[], ['@attributes' => ['os' => 'Linux'], '@value' => 'grep']],
+ ];
}
/**