/** * @Then it should be billed to :customerName, :street, :postcode, :city, :countryName * @Then /^(this order) bill should (?:|still )be shipped to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)"$/ */ public function itShouldBeBilledTo(OrderInterface $order = null, $customerName, $street, $postcode, $city, $countryName) { if (null !== $order) { $this->iSeeTheOrder($order); } Assert::true($this->showPage->hasBillingAddress($customerName, $street, $postcode, $city, $countryName), sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName)); }
/** * @Then it should be billed to :customerName, :street, :postcode, :city, :countryName */ public function itShouldBeBilledTo($customerName, $street, $postcode, $city, $countryName) { Assert::true($this->showPage->hasBillingAddress($customerName, $street, $postcode, $city, $countryName), sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName)); }