Skip to content

Commit 11b2a9b

Browse files
committed
[Console] explicit assertion for ArgvInput::getFirstArgument() with no arguments
1 parent a108445 commit 11b2a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function testParseEmptyStringArgument()
257257
public function testGetFirstArgument()
258258
{
259259
$input = new ArgvInput(array('cli.php', '-fbbar'));
260-
$this->assertEquals('', $input->getFirstArgument(), '->getFirstArgument() returns the first argument from the raw input');
260+
$this->assertNull($input->getFirstArgument(), '->getFirstArgument() returns null when there is no arguments');
261261

262262
$input = new ArgvInput(array('cli.php', '-fbbar', 'foo'));
263263
$this->assertEquals('foo', $input->getFirstArgument(), '->getFirstArgument() returns the first argument from the raw input');

0 commit comments

Comments
 (0)