public function dispatchCallsTheControllersProcessRequestMethodUntilTheIsDispatchedFlagInTheRequestObjectIsSet()
{
$this->mockActionRequest->expects($this->at(0))->method('isDispatched')->will($this->returnValue(false));
$this->mockActionRequest->expects($this->at(1))->method('isDispatched')->will($this->returnValue(false));
$this->mockActionRequest->expects($this->at(2))->method('isDispatched')->will($this->returnValue(true));
$this->mockController->expects($this->exactly(2))->method('processRequest')->with($this->mockActionRequest, $this->mockHttpResponse);
$this->dispatcher->dispatch($this->mockActionRequest, $this->mockHttpResponse);
}