/** * Mocks question helper. */ protected function mockQuestionHelper(array $answers) { foreach ($answers as $key => $answer) { $this->questionHelper->expects($this->at($key + 2))->method('ask')->will($this->returnValue($answer)); } $this->helperSet->set($this->questionHelper, 'question'); }