浏览代码

Test parseAuthorString() actual result

Francesc Rosàs 12 年之前
父节点
当前提交
7c273d1ee4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tests/Composer/Test/Command/InitCommandTest.php

+ 3 - 1
tests/Composer/Test/Command/InitCommandTest.php

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