/**
  * @dataProvider getVersionArgs
  */
 public function testPrintVersion($args)
 {
     $this->config->setDisplayName('The Application')->setVersion('1.2.3')->beginCommand('command')->end();
     $application = new ConsoleApplication($this->config);
     $inputStream = new StringInputStream();
     $outputStream = new BufferedOutputStream();
     $errorStream = new BufferedOutputStream();
     $status = $application->run($args, $inputStream, $outputStream, $errorStream);
     $this->assertSame(0, $status);
     $this->assertSame("The Application version 1.2.3\n", $outputStream->fetch());
     $this->assertSame('', $errorStream->fetch());
 }