From e3b9dd10c2628a0d019b31a3fefdac2a0f2bf13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesc=20Rosa=CC=80s?= Date: Sat, 25 May 2013 16:56:02 +0100 Subject: [PATCH] Test InitCommand::parseAuthorString() --- .../Composer/Test/Command/InitCommandTest.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/Composer/Test/Command/InitCommandTest.php 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(''); + } +}