/** * @test */ public function shouldReturnUpdatesInGetters() { // given $table = new TestTable(); $table->setFirstName('John'); $table->commit(); // when $table->setFirstname('Jane'); $updates = $table->getUncommitted(); // then $this->assertEquals('Jane', $updates['firstname'], "Updates are wrong"); $this->assertEquals('Jane', $table->getFirstname(), "getter is wrong"); }