mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Added testcase
This commit is contained in:
parent
a32c919145
commit
b99d9465c1
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@ class InitCommandTest extends TestCase
|
|||
$this->assertEquals('matti@example.com', $author['email']);
|
||||
}
|
||||
|
||||
public function testParseNumericAuthorString()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
$author = $command->parseAuthorString('h4x0r <h4x@example.com>');
|
||||
$this->assertEquals('h4x0r', $author['name']);
|
||||
$this->assertEquals('h4x@example.com', $author['email']);
|
||||
}
|
||||
|
||||
public function testParseEmptyAuthorString()
|
||||
{
|
||||
$command = new InitCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue