-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes address containing quotes on the folded line (#63)
fixes address containing quotes on the folded line
- Loading branch information
1 parent
4df12c6
commit 51bee44
Showing
4 changed files
with
65 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,6 @@ public function it_parses_address_strings(string $addressString, bool $construct | |
|
||
/** | ||
* @test | ||
* @dataProvider provideAddressStrings | ||
*/ | ||
public function it_can_be_converted_to_readable_string() | ||
{ | ||
|
@@ -131,6 +130,22 @@ public function it_can_be_constructed_with_a_multi_byte_name_leading_to_new_line | |
$this->assertEquals('=?UTF-8?B?0JzQuNGF0LA=?= <[email protected]>', (string)$address); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function it_quotes_folded_addresses_with_quotes_near_the_end() | ||
{ | ||
$address = new Address( | ||
new EmailAddress('[email protected]'), | ||
'Long 7bit name with only normal characters but with quoted characters near the "end"' | ||
); | ||
|
||
$this->assertEquals( | ||
"\"Long 7bit name with only normal characters but with quoted\r\n characters near the \\\"end\\\"\" <[email protected]>", | ||
(string)$address | ||
); | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
|