Skip to content

Commit

Permalink
Add unit test for wrong addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtab authored Oct 15, 2018
1 parent 440e32c commit 6f0b19a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/unit/MailHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 6f0b19a

Please sign in to comment.