Opened 9 years ago
Last modified 5 years ago
#36417 new enhancement
Unit tests for functions.php's maybe_unserialize
Reported by: | tloureiro | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | General | Keywords: | has-unit-tests |
Focuses: | Cc: |
Description
Unit tests for maybe_unseriaze
Attachments (1)
Change History (3)
#2
@
9 years ago
- Keywords has-unit-tests added
- Milestone changed from Awaiting Review to Future Release
Thanks for the tests!
I'd probably use data providers here to make it easier and more extensible. You can also use named datasets (see example 2.6 on that page) for better readability.
Also, there's no need for the ! defined( 'WPINC' )
check.
Note: See
TracTickets for help on using
tickets.
maybe_unserialize test class