We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0cccb8 commit ca0afe9Copy full SHA for ca0afe9
tests/ValidatorTest.php
@@ -66,7 +66,7 @@ public function testInvalidClassName()
66
public function testInvalidEncodingInClassName()
67
{
68
$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'));
+ $this->expectExceptionMessage(sprintf('"%sController" is not a UTF-8-encoded string.', chr(0xA6)));
+ Validator::validateClassName(mb_convert_encoding('ŚController', 'ISO-8859-2', 'UTF-8'));
71
}
72
0 commit comments