X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTests%2FForm%2FDataTransformer%2FStringToListTransformerTest.php;h=6b1e8613833dca1167c411c149bfc6d9f29c6ace;hb=41c9eecfa728df7d8734ca1b0a69c55c93aafcea;hp=7105488dc82672d9c9d8f958b390aae0aa6514c6;hpb=da2240f9d409a8301a1d469823a265780e6f1b7b;p=github%2Fwallabag%2Fwallabag.git 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 public function transformProvider() { - return array( - array(null, ''), - array(array(), ''), - array(array('single value'), 'single value'), - array(array('first value', 'second value'), 'first value,second value'), - ); + return [ + [null, ''], + [[], ''], + [['single value'], 'single value'], + [['first value', 'second value'], 'first value,second value'], + ]; } /** @@ -38,13 +38,13 @@ class StringToListTransformerTest extends \PHPUnit_Framework_TestCase public function reverseTransformProvider() { - return array( - array(null, null), - array('', array()), - array('single value', array('single value')), - array('first value,second value', array('first value', 'second value')), - array('first value, second value', array('first value', 'second value')), - array('first value, , second value', array('first value', 'second value')), - ); + return [ + [null, null], + ['', []], + ['single value', ['single value']], + ['first value,second value', ['first value', 'second value']], + ['first value, second value', ['first value', 'second value']], + ['first value, , second value', ['first value', 'second value']], + ]; } }