public function testWithWrongPassword()
{
$this->markTestIncomplete('We currently cannot deal with interactive commands');
$command = $this->_getCommand();
$generatedEmail = uniqid() . '@example.com';
// mock dialog
// We mock the DialogHelper
$dialog = $this->getMock('N98\\Util\\Console\\Helper\\ParameterHelper', array('askPassword'));
$dialog->expects($this->at(0))->method('askPassword')->will($this->returnValue(true));
// The user confirms
// We override the standard helper with our mock
$command->getHelperSet()->set($dialog, 'parameter');
$options = array('command' => $command->getName(), 'email' => $generatedEmail, 'password' => 'pass', 'firstname' => 'John', 'lastname' => 'Doe');
$commandTester = new CommandTester($command);
$commandTester->execute($options);
$this->assertRegExp('/The password must have at least 6 characters. Leading or trailing spaces will be ignored./', $commandTester->getDisplay());
}