-
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.
throw an exception instead of an error when fails to decode mime
- Loading branch information
1 parent
cbbea89
commit 8bbcb39
Showing
2 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,18 @@ public function it_is_equal_when_it_has_same_value() | |
); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function it_fails_when_it_contains_bad_characters() | ||
{ | ||
$this->expectException(\InvalidArgumentException::class); | ||
|
||
Address::fromString( | ||
(string)(new Address(new EmailAddress('[email protected]'), 'Mari�«lla Test')) | ||
); | ||
} | ||
|
||
/** | ||
* @test | ||
* @dataProvider provideAddressStrings | ||
|