Skip to content

Commit a19d4f6

Browse files
committed
minor #418 Fix the 'Invalid encoding' class name validation test. (adrienlucas)
This PR was merged into the 1.0-dev branch. Discussion ---------- Fix the 'Invalid encoding' class name validation test. I don't know why this test was written like that, and I did not find other way to fix it... Hope I'm not missing something. Commits ------- ca0afe9 Fix the 'Invalid encoding' class name validation test.
2 parents d0cccb8 + ca0afe9 commit a19d4f6

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)