/** * @Then :count email(s) should be sent to :email */ public function numberOfEmailsShouldBeSentTo($count, $email) { Assert::true($this->emailChecker->hasRecipient($email), sprintf('At least 1 email should have been sent to %s.', $email)); Assert::eq($this->emailChecker->getMessagesCount(), $count, sprintf('%d messages were sent, while there should be %d.', $this->emailChecker->getMessagesCount(), $count)); }
/** * @Then :count email(s) should be sent to :recipient */ public function numberOfEmailsShouldBeSentTo($count, $recipient) { $this->assertEmailHasRecipient($recipient); Assert::eq($this->emailChecker->getMessagesCount(), $count, sprintf('%d messages were sent, while there should be %d.', $this->emailChecker->getMessagesCount(), $count)); }