Opened 10 years ago
Last modified 8 years ago
#31313 new enhancement
refactor is_email() tests to use separate data files and PHPUnit dataProvider
Reported by: | salcode | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | is-email has-patch needs-refresh |
Focuses: | Cc: |
Description
There are a number of open tickets involving email validation that seem as though they could benefit from making the tests on is_email()
a little more robust.
This is my first pass at that.
Ultimately, I think moving the dataProvider out of IsEmail.php would be helpful so it could be re-used when adding tests for sanitize_email()
, but I wanted to take this one step at a time.
I'm relatively new to automated testing and very open to suggestions.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Using data providers makes sense, though separate files are probably not needed for that.