/** * @test */ public function shouldKeepValuesAfterCommit() { // given $game = new TestGame(); // when $game->setDatabaseId(1); $game->setPlayerId(100); $game->commit(); $newGame = new TestGame($game->getId()); // then $this->assertEquals(1, $newGame->getDatabaseId()); $this->assertEquals(100, $newGame->getPlayerId()); }