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()); }