Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Hotfix zendframework/zf2#7555 - Header\Sender::fromString() #9

Merged

Conversation

stefanotorresi
Copy link
Contributor

Header\Sender::fromString() didn't correctly set the address for some formats (most notably Sender: email@domain).

Close zendframework/zendframework#7555
Supersede and close #11

*/
public function testFromString($headerString, $expectedName, $expectedEmail, $expectedException = null)
{
if ($expectedException) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add test logic here in the same test case. Instead split the test.

@Maks3w Maks3w added the bug label Jun 13, 2015
@Maks3w Maks3w added this to the 2.5.2 milestone Jun 13, 2015
@weierophinney weierophinney removed this from the 2.5.2 milestone Sep 10, 2015
@Maks3w
Copy link
Member

Maks3w commented Oct 25, 2015

@stefanotorresi Do you will complete this?

@stefanotorresi
Copy link
Contributor Author

@Maks3w sorry I couldn't attend to this for a while, but I'll try and get at it by tomorrow, otherwise I'll let you know.

@stefanotorresi stefanotorresi force-pushed the hotfix-7555-sender-header branch from 8764b0c to b7002c7 Compare October 26, 2015 19:29
@stefanotorresi
Copy link
Contributor Author

@Maks3w should be good enough now.
I overlooked your proposal for the custom exception because I think it should be implemented in a separate PR, and for every other header as well.


public function invalidHeaderLinesProvider()
{
$mailInvalidArgumentException = 'Zend\Mail\Exception\InvalidArgumentException';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can replace these variables with php 5.5 class constant

@Maks3w
Copy link
Member

Maks3w commented Oct 26, 2015

Could you reuse existing data providers?

@stefanotorresi
Copy link
Contributor Author

Could you reuse existing data providers?

@Maks3w not without making the tests much less clear, so tbh I don't think it's worth it.

@stefanotorresi
Copy link
Contributor Author

@Maks3w to be clear, this is good to merge AFAIC, do you need me to do something?

@stefanotorresi
Copy link
Contributor Author

@weierophinney is there anything I can do to get this merged? I saw two releases recently but this has slipped under the radar.

@weierophinney weierophinney added this to the 2.7.1 milestone May 5, 2016
@weierophinney weierophinney self-assigned this May 5, 2016
@weierophinney weierophinney merged commit 7e2a454 into zendframework:master May 5, 2016
weierophinney added a commit that referenced this pull request May 5, 2016
weierophinney added a commit that referenced this pull request May 5, 2016
weierophinney added a commit that referenced this pull request May 5, 2016
weierophinney added a commit that referenced this pull request May 5, 2016
glensc added a commit to eventum/zend-mail that referenced this pull request Jan 18, 2017
@stefanotorresi stefanotorresi deleted the hotfix-7555-sender-header branch June 13, 2017 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Sender" header causing fatal error when calling Zend\Mail\Message::fromString($emailString);
4 participants