Astrotomic / phpunit-assertions

This package provides a set of common PHPUnit custom assertions.
MIT License
18 stars 3 forks source link

Add Assertions for "Plus Sign Alias" Email Addresses #3

Closed shawnhooper closed 3 years ago

shawnhooper commented 3 years ago

This pull request adds two assertions to support email addresses like:

myname+spam@example.com

This type of "plus sign alias" is supported by GMail, Office365, and several other providers. I couldn't find an official name for this feature, and am open to alternate naming suggestions.

New Assertions

EmailAssertions::assertPlusMailbox('myname, 'myname+spam@example.com')
EmailAssertions::assertPlusAlias('spam', 'myname+spam@example.com');
Gummibeer commented 3 years ago

https://github.com/Astrotomic/phpunit-assertions/releases/tag/0.5.0

shawnhooper commented 3 years ago

@Gummibeer Thanks for the merge Tom! Cheers.