/** * @test */ public function shouldBeAbleToRollbackUpdates() { // given $table = new TestTable(); $table->setFirstName('Jane'); $table->commit(); // when $table->setFirstname('John'); $this->assertEquals('John', $table->getFirstname()); $table->rollback(); // then $this->assertEquals('Jane', $table->getFirstname()); }