diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-20 15:40:22 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-20 15:40:22 +0200 |
commit | 7836a8d8c79dfec97e07214495fd77b39ae8b5e1 (patch) | |
tree | 67dd765ceb87e87c904700d55a94ec8673ca6527 /tests | |
parent | 5d7e9bb8fcbcd9a03cf0723c5258b41487850f7d (diff) | |
download | nextcloud-server-7836a8d8c79dfec97e07214495fd77b39ae8b5e1.tar.gz nextcloud-server-7836a8d8c79dfec97e07214495fd77b39ae8b5e1.zip |
use short array syntax
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/App/DependencyAnalyzerTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/App/DependencyAnalyzerTest.php b/tests/lib/App/DependencyAnalyzerTest.php index 684a1b52259..eb1142afd9d 100644 --- a/tests/lib/App/DependencyAnalyzerTest.php +++ b/tests/lib/App/DependencyAnalyzerTest.php @@ -256,17 +256,17 @@ 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'], + ]; } /** |