|
@@ -33,6 +33,16 @@ class InitCommandTest extends TestCase
|
|
|
$this->assertEquals('matti@example.com', $author['email']);
|
|
|
}
|
|
|
|
|
|
+ public function testParseValidUtf8AuthorStringWithNonSpacingMarks()
|
|
|
+ {
|
|
|
+ // \xCC\x88 is UTF-8 for U+0308 diaeresis (umlaut) combining mark
|
|
|
+ $utf8_expected = "Matti Meika\xCC\x88la\xCC\x88inen";
|
|
|
+ $command = new InitCommand;
|
|
|
+ $author = $command->parseAuthorString($utf8_expected." <matti@example.com>");
|
|
|
+ $this->assertEquals($utf8_expected, $author['name']);
|
|
|
+ $this->assertEquals('matti@example.com', $author['email']);
|
|
|
+ }
|
|
|
+
|
|
|
public function testParseNumericAuthorString()
|
|
|
{
|
|
|
$command = new InitCommand;
|