예제 #1
0
 /**
  * @param Game $game
  */
 private function showBoard(Game $game)
 {
     $view = $this->boardViewFactory->create($game->getBoard());
     $this->ioService->printMessageLine($view->render());
 }
 public function test_it_creates_and_returns_new_board_view()
 {
     $board = m::mock("TicTacToe\\Model\\Board");
     $this->assertInstanceOf(BoardView::class, $this->factory->create($board));
 }