Hi all,
I'm trying to write a functional test using the 'mailer' tester. I'm having
problems with the checkBody() method, which seems to be caused by soft
line-breaks in the mail.
My code:
...
with('mailer')->begin()->
...
checkBody('/A new Sentence has been submitted at uniquesentence.com/')->
end()
...
But this test fails, as the body doesn't match. If I add a debug(), my dumped
mail (the text/plain part) looks like this:
...
New Sentence
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
A new Sen=
tence has been submitted at uniquesentence.com:
"T002 no appr=
oval needed"=20
...
So, I'm thinking that the test isn't matching because Swift is using
quoted-printable line-breaks, and they're appearing in the middle of the string
I'm trying to match on.
Am I right in thinking that's what's going on? Is there a way of getting the
mailer tester to ignore the line-breaks? Or am I doing something silly?
Thanks,
Matt
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en