public function testDispatch() { $this->request->expects($this->once())->method('getActionName')->willReturn('index'); $this->assertEquals($this->response, $this->controller->execute($this->request)); }