public function testAddIdHeaderDelegatesToFactory() { $headers =
new Headers();
$headers->
addIdHeader('Message-ID', 'some@id'
);
$this->
assertNotNull($headers->
get('Message-ID'
));
} public function testAddPathHeaderDelegatesToFactory() { $headers =
new Headers();
$headers->
addPathHeader('Return-Path', 'some@path'
);
$this->
assertNotNull($headers->
get('Return-Path'
));
} public function testAddHeader() { $headers =
new Headers();
$headers->
addHeader('from',
['from@example.com'
]);
$headers->
addHeader('reply-to', 'reply@example.com'
);
$headers->
addHeader('return-path', 'return@example.com'
);
$headers->
addHeader('foo', 'bar'
);
$headers->
addHeader('date',
$now =
new \
DateTimeImmutable());