1
0
Fork 0

Test parseAuthorString() actual result

pull/1934/head
Francesc Rosàs 2013-05-26 15:10:17 +01:00
parent 991b4fe208
commit 7c273d1ee4
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ class InitCommandTest extends TestCase
function testParseValidAuthorString()
{
$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()