/** @depends it_can_create_a_creditor */ function test_it_can_update_a_creditor(Creditor $creditor) { $creditor->setName('Not So Nude Wines'); $notSoNudeWines = $this->api->updateCreditor($creditor); $this->assertEquals('Not So Nude Wines', $notSoNudeWines->getName()); }