Skip to content

Commit c0dcbed

Browse files
committed
minor #13755 [Console] assertion for ArgvInput::getFirstArgument() with no arguments (nanocom)
This PR was merged into the 2.3 branch. Discussion ---------- [Console] assertion for ArgvInput::getFirstArgument() with no arguments | Q | A | ------------- | --- | Bug fix? | [no] | New feature? | [no] | BC breaks? | [no] | Deprecations? | [no] | Tests pass? | [yes] | License | MIT Commits ------- 11b2a9b [Console] explicit assertion for ArgvInput::getFirstArgument() with no arguments
2 parents a108445 + 11b2a9b commit c0dcbed

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)