private function getMixedArguments($name, $comandArgument) { $mixedArguments = array($this->commandArgument, $name); if (!is_null($comandArgument)) { $parser = new Parser($comandArgument); $mixedArguments[] = $parser->getParsedArguments(); } return implode(' ', $mixedArguments); }
/** * @dataProvider dataProvider */ public function testParser($expected, $arguments) { $parser = new Parser($arguments); $parsedArguments = $parser->getParsedArguments(); $this->assertEquals($expected, $parsedArguments); }