Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2021-04-29 02:49:16 +0300
committerWilliam Desportes <williamdes@wdes.fr>2021-04-29 02:49:16 +0300
commita33d58c13d69a943e5af15e3504926e92e8a3eec (patch)
treea97bed1c46480dfbf0d5da5b7a64d731daca2df9 /test/classes
parentc4a5a4b2564001c8bacae5a0e41a6a7b4b7cca51 (diff)
Update array syntax on config generator
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/classes')
-rw-r--r--test/classes/Setup/ConfigGeneratorTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/classes/Setup/ConfigGeneratorTest.php b/test/classes/Setup/ConfigGeneratorTest.php
index e5c544bd7c..d90cb5e55d 100644
--- a/test/classes/Setup/ConfigGeneratorTest.php
+++ b/test/classes/Setup/ConfigGeneratorTest.php
@@ -97,7 +97,7 @@ class ConfigGeneratorTest extends AbstractTestCase
);
$this->assertEquals(
- '$cfg[\'var_name\'] = array(1, 2, 3);' . "\n",
+ '$cfg[\'var_name\'] = [1, 2, 3];' . "\n",
$method->invoke(
null,
'var_name',
@@ -193,7 +193,7 @@ class ConfigGeneratorTest extends AbstractTestCase
$result = $method->invoke(null, $arr, "\n");
$this->assertEquals(
- 'array(1, 2, 3, 4)',
+ '[1, 2, 3, 4]',
$result
);
@@ -209,13 +209,13 @@ class ConfigGeneratorTest extends AbstractTestCase
$result = $method->invoke(null, $arr, "\n");
$this->assertEquals(
- 'array(' . "\n" .
+ '[' . "\n" .
' 1,' . "\n" .
' 2,' . "\n" .
' 3,' . "\n" .
' 4,' . "\n" .
' 7,' . "\n" .
- ' \'foo\')',
+ ' \'foo\']',
$result
);
}