[Console] explicit assertion for ArgvInput::getFirstArgument() with no arguments

This commit is contained in:
Arnaud Kleinpeter 2015-02-21 18:00:45 +01:00
parent a10844587b
commit 11b2a9bfde
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class ArgvInputTest extends \PHPUnit_Framework_TestCase
public function testGetFirstArgument()
{
$input = new ArgvInput(array('cli.php', '-fbbar'));
$this->assertEquals('', $input->getFirstArgument(), '->getFirstArgument() returns the first argument from the raw input');
$this->assertNull($input->getFirstArgument(), '->getFirstArgument() returns null when there is no arguments');
$input = new ArgvInput(array('cli.php', '-fbbar', 'foo'));
$this->assertEquals('foo', $input->getFirstArgument(), '->getFirstArgument() returns the first argument from the raw input');