diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 11:36:01 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 12:25:29 +0200 |
commit | 4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch) | |
tree | 3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Tests/Form/DataTransformer | |
parent | 7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff) | |
download | wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip |
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Form/DataTransformer')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Form/DataTransformer/StringToListTransformerTest.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Form/DataTransformer/StringToListTransformerTest.php b/src/Wallabag/CoreBundle/Tests/Form/DataTransformer/StringToListTransformerTest.php index 7105488d..6b1e8613 100644 --- a/src/Wallabag/CoreBundle/Tests/Form/DataTransformer/StringToListTransformerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Form/DataTransformer/StringToListTransformerTest.php | |||
@@ -18,12 +18,12 @@ class StringToListTransformerTest extends \PHPUnit_Framework_TestCase | |||
18 | 18 | ||
19 | public function transformProvider() | 19 | public function transformProvider() |
20 | { | 20 | { |
21 | return array( | 21 | return [ |
22 | array(null, ''), | 22 | [null, ''], |
23 | array(array(), ''), | 23 | [[], ''], |
24 | array(array('single value'), 'single value'), | 24 | [['single value'], 'single value'], |
25 | array(array('first value', 'second value'), 'first value,second value'), | 25 | [['first value', 'second value'], 'first value,second value'], |
26 | ); | 26 | ]; |
27 | } | 27 | } |
28 | 28 | ||
29 | /** | 29 | /** |
@@ -38,13 +38,13 @@ class StringToListTransformerTest extends \PHPUnit_Framework_TestCase | |||
38 | 38 | ||
39 | public function reverseTransformProvider() | 39 | public function reverseTransformProvider() |
40 | { | 40 | { |
41 | return array( | 41 | return [ |
42 | array(null, null), | 42 | [null, null], |
43 | array('', array()), | 43 | ['', []], |
44 | array('single value', array('single value')), | 44 | ['single value', ['single value']], |
45 | array('first value,second value', array('first value', 'second value')), | 45 | ['first value,second value', ['first value', 'second value']], |
46 | array('first value, second value', array('first value', 'second value')), | 46 | ['first value, second value', ['first value', 'second value']], |
47 | array('first value, , second value', array('first value', 'second value')), | 47 | ['first value, , second value', ['first value', 'second value']], |
48 | ); | 48 | ]; |
49 | } | 49 | } |
50 | } | 50 | } |