示例#1
0
 public function testChangeSnapshotResetsDirtyness()
 {
     $model = new ModelState();
     $model->NewProperty = "123";
     $this->assertTrue($model->hasChanged());
     $model->takeChangeSnapshot();
     $this->assertFalse($model->hasChanged());
 }