/** * @Then /^(this customer) should have "([^"]+)" as their group$/ */ public function thisCustomerShouldHaveAsTheirGroup(CustomerInterface $customer, $groupName) { $this->updatePage->open(['id' => $customer->getId()]); Assert::same($groupName, $this->updatePage->getGroupName(), sprintf('Customer should have %s as group, but it does not', $groupName)); }