1
0
Fork 0

Added testcase

pull/3953/head
Rob Bast 2015-04-20 13:09:18 +02:00
parent a32c919145
commit b99d9465c1
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ class InitCommandTest extends TestCase
$this->assertEquals('matti@example.com', $author['email']); $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() public function testParseEmptyAuthorString()
{ {
$command = new InitCommand; $command = new InitCommand;