public function testExecute()
{
$command = $this->getCommand();
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), '--add-time' => true, '--only-command' => true, '--force' => true, '--compression' => 'gz'));
$this->assertRegExp('/mysqldump/', $commandTester->getDisplay());
$this->assertRegExp('/\\.sql/', $commandTester->getDisplay());
$this->assertContains(".sql.gz", $commandTester->getDisplay());
}