public function testUpdateShouldUpdateAClient() { $newClient = new Client('foo'); $savedClient = $this->repository->add($newClient); $updatedClient = new Client(array_merge($savedClient->getParams(), ['name' => 'bar'])); $this->repository->update($updatedClient); $this->assertEquals([f\get($updatedClient, 'id') => $updatedClient], $this->repository->findAll()); }