public function testIdOnlySetOnce()
 {
     $game = new \IBL\Game();
     $id = 10;
     $game->setId($id);
     $this->assertEquals($id, $game->getId());
     $anotherId = 20;
     $game->setId($anotherId);
     $this->assertEquals($id, $game->getId());
 }
 public function testSave()
 {
     $game = new \IBL\Game();
     $game->setWeek(28);
     $game->setHomeScore(1);
     $game->setAwayScore(0);
     $game->setHomeTeamId(1);
     $game->setAwayTeamId(0);
     $this->assertNull($game->getId());
     $mapper = new \IBL\GameMapper($this->_conn);
     $mapper->save($game);
     $this->assertTrue($game->getId() !== null);
     $mapper->delete($game);
 }