summaryrefslogtreecommitdiffstats
path: root/tests/Misc/UtfStringTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Misc/UtfStringTest.php')
-rw-r--r--tests/Misc/UtfStringTest.php33
1 files changed, 15 insertions, 18 deletions
diff --git a/tests/Misc/UtfStringTest.php b/tests/Misc/UtfStringTest.php
index 36f0298..c83339a 100644
--- a/tests/Misc/UtfStringTest.php
+++ b/tests/Misc/UtfStringTest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Misc;
@@ -36,22 +37,18 @@ class UtfStringTest extends TestCase
$this->assertNull($str[static::TEST_PHRASE_LEN]);
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Not implemented.
- */
public function testSet()
{
+ $this->expectExceptionMessage('Not implemented.');
+ $this->expectException(\Exception::class);
$str = new UtfString('');
$str[0] = 'a';
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Not implemented.
- */
public function testUnset()
{
+ $this->expectExceptionMessage('Not implemented.');
+ $this->expectException(\Exception::class);
$str = new UtfString('');
unset($str[0]);
}
@@ -102,27 +99,27 @@ class UtfStringTest extends TestCase
public function utf8Strings()
{
- return array(
- 'ascii' => array(
+ return [
+ 'ascii' => [
'abcdefghijklmnopqrstuvwxyz',
'k',
'u',
- ),
- 'unicode' => array(
+ ],
+ 'unicode' => [
'áéíóúýěřťǔǐǒǎšďȟǰǩľžčǚň',
'ǐ',
'č',
- ),
- 'emoji' => array(
+ ],
+ 'emoji' => [
'😂😄😃😀😊😉😍😘😚😗😂👿😮😨😱😠😡😤😖😆😋👯',
'😂',
'😋',
- ),
- 'iso' => array(
+ ],
+ 'iso' => [
"P\xf8\xed\xb9ern\xec \xbelu\xbbou\xe8k\xfd k\xf3d \xfap\xecl \xef\xe1belsk\xe9 k\xf3dy",
null,
null,
- )
- );
+ ],
+ ];
}
}