/** * @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'); } }