mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Init command - diacritical marks in author name
This commit is contained in:
parent
3ffad59719
commit
95cbb177dd
2 changed files with 9 additions and 1 deletions
|
@ -25,6 +25,14 @@ class InitCommandTest extends TestCase
|
|||
$this->assertEquals('john@example.com', $author['email']);
|
||||
}
|
||||
|
||||
public function testParseValidUtf8AuthorString()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
$author = $command->parseAuthorString('Matti Meikäläinen <matti@example.com>');
|
||||
$this->assertEquals('Matti Meikäläinen', $author['name']);
|
||||
$this->assertEquals('matti@example.com', $author['email']);
|
||||
}
|
||||
|
||||
public function testParseEmptyAuthorString()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue