/**
  * Handle request and set message to.
  */
 public function playGame()
 {
     $this->model->processShot(RequestHandler::getRequest());
     $this->view->setMessage($this->model->getMessage());
     $this->view->setData($this->model->getData()['grid']);
     $this->view->display();
 }
 public function testConstructedWithNullRequest()
 {
     $r = new RequestHandler();
     $this->assertInstanceOf('NullHTTPRequest', $r->getRequest());
 }
Exemplo n.º 3
0
 function testConstructedWithNullRequest()
 {
     $r = new RequestHandler();
     $this->assertType('NullHTTPRequest', $r->getRequest());
 }