/** * @covers ::hasChange */ public function testHasChange() { $object = new City(['id' => 10, 'name' => 'test1']); $this->assertFalse($object->hasChange('name')); $object->name = 'new val'; $this->assertFalse($object->hasChange('id')); $this->assertTrue($object->hasChange('name')); $object->name = 'test1'; $this->assertFalse($object->hasChange('id')); $this->assertFalse($object->hasChange('name')); }