EOF;
/**
* @dataProvider getSignData
*/
public function testSign(int
$time, string
$bodyCanon, string
$headerCanon, string
$header) { ClockMock::
withClockMock($time);
$message =
(new Email()) ->
from(new Address('fabien@testdkim.symfony.net', 'Fabién'
)) ->
to('fabien.potencier@gmail.com'
) ->
subject('Tést'
) ->
text("Some body \n \n This \r\n\r\n is really interesting and at the same time very long line to see if everything works as expected, does it?\r\n\r\n\r\n\r\n"
) ->
date(new \
DateTimeImmutable('2005-10-15',
new \
DateTimeZone('Europe/Paris'
)));
$signer =
new DkimSigner(self::
$pk, 'testdkim.symfony.net', 'sf'
);
$signedMessage =
$signer->
sign($message,
[ 'header_canon' =>
$headerCanon,