getArgs() public method

public getArgs ( ) : string
return string the command args that where set through setArgs() or added with addArg() separated by spaces
Ejemplo n.º 1
0
 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());
 }