Test parseAuthorString() actual result

main
Francesc Rosàs 11 years ago
parent 991b4fe208
commit 7c273d1ee4

@ -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()

Loading…
Cancel
Save