[wp-trac] [WordPress Trac] #51456: Add an NPM command for easier PHPUnit testing on PHP 8
WordPress Trac
noreply at wordpress.org
Wed Oct 7 13:08:35 UTC 2020
#51456: Add an NPM command for easier PHPUnit testing on PHP 8
------------------------------+----------------------
Reporter: desrosj | Owner: desrosj
Type: feature request | Status: closed
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch php8 | Focuses:
------------------------------+----------------------
Changes (by desrosj):
* owner: (none) => desrosj
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49099" 49099]:
{{{
#!CommitTicketReference repository="" revision="49099"
Build/Test Tools: Add NPM script for using the Composer installed version
of PHPUnit.
The `test:php` NPM script runs the PHP test suite using the system
installed version of PHPUnit. In some cases, the version of PHPUnit
installed through Composer may be preferred.
Currently, this is true when running the test suite using PHP 8. In order
to add support for PHP 8 while maintaining compatibility for PHP 5.6.20,
PHPUnit 7.x must be used. But, some modifications are required to be
compatible with PHP 8 (see [49037], [48957]).
This change introduces the `test:php-composer` NPM script, which will run
the test suite using the composer installed version.
Props desrosj, SergeyBiryukov.
Fixes #51456.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51456#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list