} public function testSignWithUnsupportedAlgorithm() { $message =
$this->
createMock(Message::
class);
$signer =
new DkimSigner(self::
$pk, 'testdkim.symfony.net', 'sf',
[ 'algorithm' => 'unsupported-value',
]);
$this->
expectExceptionObject( new \
LogicException('Invalid DKIM signing algorithm "unsupported-value".'
) );
$signer->
sign($message,
[]);
} /**
* @dataProvider getCanonicalizeHeaderData
*/
public function testCanonicalizeHeader(string
$bodyCanon, string
$canonBody, string
$body, int
$maxLength) {