#53491 closed defect (bug) (fixed)
update 'assertInternalType' is deprecate Method
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests commit |
| Focuses: | Cc: |
Description
patch to replace them
Attachments (1)
Change History (9)
This ticket was mentioned in PR #1420 on WordPress/wordpress-develop by pbearne.
4 years ago
#1
#5
@
4 years ago
Thanks for the PR!
It looks like assertIsArray(), assertIsString(), assertIsInt(), etc. are only available in PHPUnit 7.5.x or later, so we'll need polyfills for older versions. WordPress currently supports PHPUnit 5.4.x as the minimum version.
Related: #46149
#6
@
4 years ago
- Keywords commit added
53491.diff adds the polyfills for PHPUnit < 7.5.x and fixes some WPCS issues, making all the tests pass.
This ticket was mentioned in Slack in #core by sergey. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
converted assertInternalType methods
Trac ticket: https://core.trac.wordpress.org/ticket/53491