use Symfony\Component\Mime\Header\Headers;
use Symfony\Component\Mime\Header\IdentificationHeader;
use Symfony\Component\Mime\Header\MailboxListHeader;
use Symfony\Component\Mime\Header\PathHeader;
use Symfony\Component\Mime\Header\UnstructuredHeader;
class HeadersTest extends TestCase
{ public function testAddMailboxListHeaderDelegatesToFactory() { $headers =
new Headers();
$headers->
addMailboxListHeader('From',
['person@domain'
]);
$this->
assertNotNull($headers->
get('From'
));
} public function testAddDateHeaderDelegatesToFactory() { $dateTime =
new \
DateTimeImmutable();
$headers =
new Headers();
$headers->
addDateHeader('Date',
$dateTime);
$this->
assertNotNull($headers->
get('Date'
));
}