[Console] explicit assertion for ArgvInput::getFirstArgument() with no arguments
This commit is contained in:
parent
a10844587b
commit
11b2a9bfde
|
@ -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');
|
||||
|
|
Reference in New Issue