Пример #1
0
 /**
  * @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());
 }