Ejemplo n.º 1
0
 /**
  * @test
  */
 public function testIsDirty()
 {
     $storage = new Record(['nickname' => 'foo']);
     $this->assertEquals(false, $storage->isDirty());
     $storage->nickname = 'bar';
     $this->assertEquals('bar', $storage->nickname);
     $this->assertEquals(true, $storage->isDirty());
 }
Ejemplo n.º 2
0
 /**
  * @return bool
  */
 public function isDirty()
 {
     return $this->record->isDirty();
 }