Exemple #1
0
 /**
  * A simple guard to make sure the account has enough customers to limit.
  * In the future GoCardless will allow purging of account which will mean
  * we can create and clean up.
  */
 private function guardAgainstSmallNumberOfCustomerAccounts()
 {
     if (count($this->api->listCustomers()) < 5) {
         $this->markTestSkipped('Skipping test due to lack of customers in system. This test requires at least 5.');
     }
 }