diff options
Diffstat (limited to 'tests/Misc')
-rw-r--r-- | tests/Misc/BugsTest.php | 20 | ||||
-rw-r--r-- | tests/Misc/ParameterTest.php | 6 | ||||
-rw-r--r-- | tests/Misc/UtfStringTest.php | 40 |
3 files changed, 37 insertions, 29 deletions
diff --git a/tests/Misc/BugsTest.php b/tests/Misc/BugsTest.php index 9a1c070..5dbb861 100644 --- a/tests/Misc/BugsTest.php +++ b/tests/Misc/BugsTest.php @@ -18,15 +18,15 @@ class BugsTest extends TestCase public function testBugProvider() { - return array( - array('bugs/gh9'), - array('bugs/gh14'), - array('bugs/gh16'), - array('bugs/pma11800'), - array('bugs/pma11836'), - array('bugs/pma11843'), - array('bugs/pma11867'), - array('bugs/pma11879'), - ); + return [ + ['bugs/gh9'], + ['bugs/gh14'], + ['bugs/gh16'], + ['bugs/pma11800'], + ['bugs/pma11836'], + ['bugs/pma11843'], + ['bugs/pma11867'], + ['bugs/pma11879'], + ]; } } diff --git a/tests/Misc/ParameterTest.php b/tests/Misc/ParameterTest.php index 8aaed96..fa6b79c 100644 --- a/tests/Misc/ParameterTest.php +++ b/tests/Misc/ParameterTest.php @@ -18,8 +18,8 @@ class ParameterTest extends TestCase public function testParameterProvider() { - return array( - array('misc/parseParameter'), - ); + return [ + ['misc/parseParameter'], + ]; } } diff --git a/tests/Misc/UtfStringTest.php b/tests/Misc/UtfStringTest.php index d0c95a3..afa3b0c 100644 --- a/tests/Misc/UtfStringTest.php +++ b/tests/Misc/UtfStringTest.php @@ -86,7 +86,7 @@ class UtfStringTest extends TestCase /** * Test access to string. * - * @dataProvider utf8_strings + * @dataProvider utf8Strings * * @param mixed $text * @param mixed $pos10 @@ -100,21 +100,29 @@ class UtfStringTest extends TestCase $this->assertEquals($pos10, $str->offsetGet(10)); } - public function utf8_strings() + public function utf8Strings() { - return array( - 'ascii' => array( - 'abcdefghijklmnopqrstuvwxyz', 'k', 'u', - ), - 'unicode' => array( - 'áéíóúýěřťǔǐǒǎšďȟǰǩľžčǚň', 'ǐ', 'č', - ), - 'emoji' => array( - '😂😄😃😀😊😉😍😘😚😗😂👿😮😨😱😠😡😤😖😆😋👯', '😂', '😋', - ), - 'iso' => array( - "P\xf8\xed\xb9ern\xec \xbelu\xbbou\xe8k\xfd k\xf3d \xfap\xecl \xef\xe1belsk\xe9 k\xf3dy", null, null, - ), - ); + return [ + 'ascii' => [ + 'abcdefghijklmnopqrstuvwxyz', + 'k', + 'u', + ], + 'unicode' => [ + 'áéíóúýěřťǔǐǒǎšďȟǰǩľžčǚň', + 'ǐ', + 'č', + ], + 'emoji' => [ + '😂😄😃😀😊😉😍😘😚😗😂👿😮😨😱😠😡😤😖😆😋👯', + '😂', + '😋', + ], + 'iso' => [ + "P\xf8\xed\xb9ern\xec \xbelu\xbbou\xe8k\xfd k\xf3d \xfap\xecl \xef\xe1belsk\xe9 k\xf3dy", + null, + null, + ], + ]; } } |