#51456 closed feature request (fixed)
Add an NPM command for easier PHPUnit testing on PHP 8
| Reported by: | desrosj | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 |
| Component: | Build/Test Tools | Version: | 5.6 |
| Severity: | normal | Keywords: | has-patch php8 |
| Cc: | Focuses: |
Description (last modified by )
In order to maintain PHP 5.6.20 support and add support for PHP 8, Composer is currently being used to force PHPUnit 7.x for PHP 8 (see r48957 and r49037). It would be great to have an NPM command that makes it easier to run the test suite with the Composer installed version of PHPunit.
Something like npm run test:php8. It could also be more general (maybe npm run test:php-composer) in case the Composer installed version is desired past this compatibility shim.
Attachments (2)
Change History (10)
This ticket was mentioned in PR #572 on WordPress/wordpress-develop by desrosj.
6 years ago
#4
6 years ago
#6
Merged into core in revision 49099.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Also updates the
.travis.ymlfile to use this script.Ticket: https://core.trac.wordpress.org/ticket/51456