public function getItemTotal($itemName);
/** * @Then /^(its) total should be ([^"]+)$/ */ public function itemTotalShouldBe($itemName, $total) { $itemTotalOnPage = $this->showPage->getItemTotal($itemName); Assert::eq($itemTotalOnPage, $total, 'Item total is %s, but should be %s.'); }