function EmailCount::countEmails
2 calls to EmailCount::countEmails()
- EmailCount::failureDescription in vendor/
symfony/ mailer/ Test/ Constraint/ EmailCount.php - EmailCount::matches in vendor/
symfony/ mailer/ Test/ Constraint/ EmailCount.php
File
-
vendor/
symfony/ mailer/ Test/ Constraint/ EmailCount.php, line 47
Class
Namespace
Symfony\Component\Mailer\Test\ConstraintCode
private function countEmails(MessageEvents $events) : int {
$count = 0;
foreach ($events->getEvents($this->transport) as $event) {
if ($this->queued && $event->isQueued() || !$this->queued && !$event->isQueued()) {
++$count;
}
}
return $count;
}