/**
* Mocks question helper.
*/
protected function mockQuestionHelper()
{
$question_helper = $this->createMock('Symfony\\Component\\Console\\Helper\\QuestionHelper');
foreach ($this->answers as $key => $answer) {
// @TODO: Figure out where this key ofset comes from.
$question_helper->expects($this->at($key + 2))->method('ask')->willReturn($answer);
}
// We override the question helper with our mock.
$this->command->getHelperSet()->set($question_helper, 'question');
}