/**
  * @depends testListCustomerBankAccounts
  * @param CustomerBankAccount $old
  */
 public function testGetCustomerBankAccount($old)
 {
     $new = $this->getClient()->getCustomerBankAccount($old->getId());
     $newArray = $new->toArray();
     $oldArray = $old->toArray();
     $this->assertEquals($newArray, $oldArray);
 }
Ejemplo n.º 2
0
 /**
  * @param CustomerBankAccount $account
  * @return CustomerBankAccount
  */
 public function createCustomerBankAccount(CustomerBankAccount $account)
 {
     $response = $this->post(self::ENDPOINT_CUSTOMER_BANK, $account->toArray());
     $account->fromArray($response);
     return $account;
 }