/** * @covers TheSportsDb\Entity\Entity::update */ public function testUpdate() { $update_vals = array('id' => 'newId', 'name' => 'newName'); $this->entity->update((object) $update_vals); foreach ($update_vals as $prop => $val) { $this->assertEquals($val, $this->entity->{$prop}); } }