[wp-trac] [WordPress Trac] #51456: Add an NPM command for easier PHPUnit testing on PHP 8

WordPress Trac noreply at wordpress.org
Tue Oct 6 19:09:39 UTC 2020


#51456: Add an NPM command for easier PHPUnit testing on PHP 8
------------------------------+---------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  feature request   |      Status:  new
 Priority:  normal            |   Milestone:  5.6
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------
Description changed by SergeyBiryukov:

Old description:

> 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
> 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.

New description:

 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.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51456#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list