diff --git a/tests/Composer/Test/Command/InitCommandTest.php b/tests/Composer/Test/Command/InitCommandTest.php new file mode 100644 index 000000000..fa42f0108 --- /dev/null +++ b/tests/Composer/Test/Command/InitCommandTest.php @@ -0,0 +1,22 @@ +parseAuthorString('John Smith '); + } + + function testParseInvalidAuthorString() + { + $command = new InitCommand; + $this->setExpectedException('InvalidArgumentException'); + $command->parseAuthorString(''); + } +}