From 7c273d1ee4dd8652234a2102a88ea53a758930fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesc=20Ros=C3=A0s?= Date: Sun, 26 May 2013 15:10:17 +0100 Subject: [PATCH] Test parseAuthorString() actual result --- tests/Composer/Test/Command/InitCommandTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/Command/InitCommandTest.php b/tests/Composer/Test/Command/InitCommandTest.php index 76710398c..3eb870713 100644 --- a/tests/Composer/Test/Command/InitCommandTest.php +++ b/tests/Composer/Test/Command/InitCommandTest.php @@ -10,7 +10,9 @@ class InitCommandTest extends TestCase function testParseValidAuthorString() { $command = new InitCommand; - $command->parseAuthorString('John Smith '); + $author = $command->parseAuthorString('John Smith '); + $this->assertEquals('John Smith', $author['name']); + $this->assertEquals('john@example.com', $author['email']); } function testParseEmptyAuthorString()