/** * @Then /^(its) discount should be ([^"]+)$/ * @Then the :itemName should have :discount discount */ public function theItemShouldHaveDiscount($itemName, $discount) { $itemDiscountOnPage = $this->showPage->getItemDiscount($itemName); Assert::eq($itemDiscountOnPage, $discount, 'Item discount is %s, but should be %s.'); }