public function thisPaymentMethodShouldNoLongerExistInTheRegistry(PaymentMethodInterface $paymentMethod) { Assert::false($this->indexPage->isSingleResourceOnPage(['code' => $paymentMethod->getCode(), 'name' => $paymentMethod->getName()]), sprintf('Payment method %s should no longer exist in the registry', $paymentMethod->getName())); }