/**
  * @Given I have a customer :name
  */
 public function iHaveACustomer($name)
 {
     $customer = new Customer($name . '_' . uniqid() . '@example.com');
     $customer->setName($name)->setPasswd('passpass666')->setCompany('company')->setAddress(new Address('addressLine1', 'city', 'state', 'US', '000000'))->setPhone(new Phone('33', '0666666666'))->setLang('en');
     $customerManager = new CustomerManager($this->resellerClubClient);
     $this->customer = $customerManager->register($customer);
 }
 /**
  * @When I ask the customer :name
  */
 public function iAskTheCustomer($name)
 {
     $customerManager = new CustomerManager($this->resellerClubClient);
     $customer = $customerManager->findByUsername($this->customer->getUsername());
     if (!($customer->getId() == $this->customer->getId() && $customer !== $this->customer)) {
         throw new \Exception('not the same details or not from the remote api');
     }
 }