public function test_construct()
 {
     $steampunked = new Steampunked(self::SEED);
     $steampunked->setSize(6, 6);
     $this->assertEquals(6, $steampunked->getHeight());
     $this->assertEquals(6, $steampunked->getWidth());
     $steampunkedView = new SteampunkedView($steampunked);
     $this->assertContains('<div class="game"><div class="row">', $steampunkedView->gameGrid());
     $this->assertContains('<img src="images/valve-closed.png">', $steampunkedView->gameGrid());
     $this->assertContains('', $steampunkedView->gameGrid());
     $this->assertContains('<input type=\\"submit\\" name=\\"rotate\\" id=\\"rotate\\" value=\\"Rotate\\">', $steampunkedView->gameButtons());
     $this->assertContains('<input type="submit" name="discard" id="discard" value="Discard">', $steampunkedView->gameButtons());
     $this->assertContains('<input type="submit" name="openValve" id="openValve" value="Open Valve">', $steampunkedView->gameButtons());
     $this->assertContains('<input type="submit" name="giveUp" id="giveUp" value="Give Up">', $steampunkedView->gameButtons());
 }
 public function testTurns()
 {
     $steampunked = new Steampunked(self::SEED);
     $steampunked->setSize(10, 10);
     //The game should start with Player 1's turn by default
     $this->assertEquals(1, $steampunked->getTurn());
     //Tests changing from turn 1 to turn 2
     $steampunked->nextTurn();
     $this->assertEquals(2, $steampunked->getTurn());
     //Tests changing from turn 2 to turn 1;
     $steampunked->nextTurn();
     $this->assertEquals(1, $steampunked->getTurn());
 }