Test parseAuthorString() actual result
parent
991b4fe208
commit
7c273d1ee4
|
@ -10,7 +10,9 @@ class InitCommandTest extends TestCase
|
||||||
function testParseValidAuthorString()
|
function testParseValidAuthorString()
|
||||||
{
|
{
|
||||||
$command = new InitCommand;
|
$command = new InitCommand;
|
||||||
$command->parseAuthorString('John Smith <john@example.com>');
|
$author = $command->parseAuthorString('John Smith <john@example.com>');
|
||||||
|
$this->assertEquals('John Smith', $author['name']);
|
||||||
|
$this->assertEquals('john@example.com', $author['email']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testParseEmptyAuthorString()
|
function testParseEmptyAuthorString()
|
||||||
|
|
Loading…
Reference in New Issue