public function hasItemWithOptionValue($productName, $optionName, $optionValue);
/** * @Given /^(this product) should have ([^"]+) "([^"]+)"$/ */ public function thisItemShouldHaveOptionValue(ProductInterface $product, $optionName, $optionValue) { Assert::true($this->summaryPage->hasItemWithOptionValue($product->getName(), $optionName, $optionValue), sprintf('Product in cart "%s" should have option %s with value %s, but it has not.', $product->getName(), $optionName, $optionValue)); }