public function testGetParameterOption()
{
$input = new ArgsInput(new StringArgs('-vvalue1 --value=value2 --space value3 --last -- --foo=bar'));
$this->assertSame('value1', $input->getParameterOption('-v'));
$this->assertSame('value2', $input->getParameterOption('--value'));
$this->assertSame('value3', $input->getParameterOption('--space'));
$this->assertNull($input->getParameterOption('--last'));
$this->assertSame('bar', $input->getParameterOption('--foo', 'default'));
// only check real parameters, skip those following an end of options (--) signal
$this->assertSame('default', $input->getParameterOption('--foo', 'default', true));
}