summaryrefslogtreecommitdiff
path: root/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/translation/Tests/Util/ArrayConverterTest.php')
-rw-r--r--vendor/symfony/translation/Tests/Util/ArrayConverterTest.php50
1 files changed, 25 insertions, 25 deletions
diff --git a/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php b/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php
index dbb5424f1c..b0335415e1 100644
--- a/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php
+++ b/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php
@@ -26,49 +26,49 @@ class ArrayConverterTest extends TestCase
public function messagesData()
{
- return array(
- array(
+ return [
+ [
// input
- array(
+ [
'foo1' => 'bar',
'foo.bar' => 'value',
- ),
+ ],
// expected output
- array(
+ [
'foo1' => 'bar',
- 'foo' => array('bar' => 'value'),
- ),
- ),
- array(
+ 'foo' => ['bar' => 'value'],
+ ],
+ ],
+ [
// input
- array(
+ [
'foo.bar' => 'value1',
'foo.bar.test' => 'value2',
- ),
+ ],
// expected output
- array(
- 'foo' => array(
+ [
+ 'foo' => [
'bar' => 'value1',
'bar.test' => 'value2',
- ),
- ),
- ),
- array(
+ ],
+ ],
+ ],
+ [
// input
- array(
+ [
'foo.level2.level3.level4' => 'value1',
'foo.level2' => 'value2',
'foo.bar' => 'value3',
- ),
+ ],
// expected output
- array(
- 'foo' => array(
+ [
+ 'foo' => [
'level2' => 'value2',
'level2.level3.level4' => 'value1',
'bar' => 'value3',
- ),
- ),
- ),
- );
+ ],
+ ],
+ ],
+ ];
}
}