/**
  * @depends testListCustomers
  * @param Customer $old
  */
 public function testGetCustomer(Customer $old)
 {
     $new = $this->getClient()->getCustomer($old->getId());
     $newArray = $new->toArray();
     $oldArray = $old->toArray();
     $this->assertEquals($newArray, $oldArray);
 }
Пример #2
0
 /**
  * @param Customer $customer
  * @return Customer
  */
 public function createCustomer(Customer $customer)
 {
     $response = $this->post(self::ENDPOINT_CUSTOMER, $customer->toArray());
     $customer->fromArray($response);
     return $customer;
 }