/** * @Then /^I should see "([^"]+)" with quantity (\d+) in my cart$/ */ public function iShouldSeeWithQuantityInMyCart($productName, $quantity) { Assert::same($this->summaryPage->getQuantity($productName), (int) $quantity, 'The quantity of product should be %2$s, but it is %s'); }