-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #740 from smrtab/master
Fixes #739 Wrong condition
- Loading branch information
Showing
2 changed files
with
13 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,4 +70,15 @@ public function testEmailName() | |
'{"name":"\\"O\'Keeffe, John \\\\\\"Billy\\\\\\"\\"","email":"[email protected]"}' | ||
); | ||
} | ||
|
||
/** | ||
* This method tests TypeException for wrong email address | ||
* | ||
* @expectedException \SendGrid\Mail\TypeException | ||
*/ | ||
public function testEmailAddress() | ||
{ | ||
$email = new EmailAddress(); | ||
$email->setEmailAddress('[email protected]@wrong'); | ||
} | ||
} |