public function testCanDisableEscaping()
{
$command = new Command();
$command->escapeArgs = false;
$command->addArg('--a');
$command->addArg('--a', 'v');
$command->addArg('--a', array("v1", 'v2', 'v3'));
$command->addArg('-b=', 'v', true);
$command->addArg('-b=', array('v4', 'v5', 'v6'));
$command->addArg('some name', null, true);
$this->assertEquals("--a --a v --a v1 v2 v3 -b='v' -b=v4 v5 v6 'some name'", $command->getArgs());
}