/** * @Given I should be informed with :paymentMethod payment method instructions */ public function iShouldBeInformedWithPaymentMethodInstructions(PaymentMethodInterface $paymentMethod) { Assert::same($this->thankYouPage->getInstructions(), $paymentMethod->getInstructions()); }