Alex\MailCatcher\Behat\MailCatcherContext::verifyMailsSent PHP Method

verifyMailsSent() public method

public verifyMailsSent ( $count )
    public function verifyMailsSent($count)
    {
        $count = (int) $count;
        $actual = $this->getMailCatcherClient()->getMessageCount();
        if ($count !== $actual) {
            throw new \InvalidArgumentException(sprintf('Expected %d mails to be sent, got %d.', $count, $actual));
        }
    }