14 use PHPUnit\Framework\Constraint\Constraint;
23 $this->headerName = $headerName;
31 return sprintf(
'has header "%s"', $this->headerName);
39 protected function matches($message): bool
41 if (RawMessage::class === \get_class($message)) {
42 throw new \LogicException(
'Unable to test a message header on a RawMessage instance.');
45 return $message->getHeaders()->has($this->headerName);
55 return 'the Email '.$this->toString();