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));
}
}