all() public static méthode

retrieve all addresses
public static all ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
Résultat mixed
 /**
  * @depends testRetrieve
  */
 public function testAll(\EasyPost\Address $address)
 {
     $all = \EasyPost\Address::all();
     $address_in_all = false;
     for ($_i = 0, $_k = count($all); $_i < $_k; $_i++) {
         if ($all[$_i]->id === $address->id) {
             $address_in_all = true;
         }
     }
     $this->assertTrue($address_in_all);
 }