Overrides Constraint::matches
protected function matches($other) : bool { if (!$other instanceof Email) { throw new \LogicException('Can only test a message subject on an Email instance.'); } return str_contains((string) $other->getSubject(), $this->expectedSubjectValue); }