public function filenamePatterns($regex, array $options)
{
$command = $this->getCommand();
$mandatory = array('command' => $command->getName(), '--force' => true, '--print-only-filename' => true, '--dry-run' => null);
$defaults = array('--add-time' => true);
$commandTester = new CommandTester($command);
$commandTester->execute($mandatory + $options + $defaults);
$this->assertRegExp($regex, $commandTester->getDisplay());
}