public function testApplicationCommandStrings($argv, $expected)
{
$this->createFixtures();
$home = $this->workDir;
$commandList = $this->application->parseArgvAndGetCommandList($argv, $home);
$commandStrings = array();
foreach ($commandList as $command) {
$commandStrings[] = $command->getCommandString();
}
$actual = implode("\n", $commandStrings);
$actual = str_replace($this->workDir, '{workdir}', $actual);
$this->assertEquals($expected, $actual);
}