/** * @When /^I specify the billing (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/ * @When /^I (do not specify any billing address) information$/ */ public function iSpecifyTheBillingAddressAs(AddressInterface $address) { $this->iChooseTheDifferentBillingAddress(); $key = sprintf('billing_address_%s_%s', strtolower($address->getFirstName()), strtolower($address->getLastName())); $this->sharedStorage->set($key, $address); $this->addressingPage->specifyBillingAddress($address); }
/** * @When /^I specify the billing (address as "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)")$/ * @When /^I (do not specify any billing address) information$/ */ public function iSpecifyTheBillingAddressAs(AddressInterface $address) { $this->addressingPage->specifyBillingAddress($address); }