示例#1
0
 /**
  * @covers ::setProperties
  */
 public function testSetProperties()
 {
     $object = new City(['id' => 10, 'name' => 'test1']);
     $object->setProperties(['id' => 20, 'name' => 'changed']);
     $this->assertEquals(20, $object->id);
     $this->assertEquals('changed', $object->name);
 }