Skip to content

Commit ca0afe9

Browse files
committed
Fix the 'Invalid encoding' class name validation test.
1 parent d0cccb8 commit ca0afe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testInvalidClassName()
6666
public function testInvalidEncodingInClassName()
6767
{
6868
$this->expectException(RuntimeCommandException::class);
69-
$this->expectExceptionMessage('"�Controller" is not a UTF-8-encoded string.');
70-
Validator::validateClassName(mb_convert_encoding('Ś', 'ISO-8859-2', 'UTF-8'));
69+
$this->expectExceptionMessage(sprintf('"%sController" is not a UTF-8-encoded string.', chr(0xA6)));
70+
Validator::validateClassName(mb_convert_encoding('ŚController', 'ISO-8859-2', 'UTF-8'));
7171
}
7272
}

0 commit comments

Comments
 (0)