/** * @Then I should be notified that :element is required */ public function iShouldBeNotifiedThatElementIsRequired($element) { Assert::same($this->createPage->getValidationMessage($element), sprintf('Please enter option %s.', $element)); }