[wp-trac] [WordPress Trac] #43218: PHPUnit 7.x support

WordPress Trac noreply at wordpress.org
Fri Feb 2 22:58:48 UTC 2018


#43218: PHPUnit 7.x support
------------------------------+------------------------------
 Reporter:  ayeshrajans       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by ayeshrajans):

 PHPUnit 5.x supported ends today, leaving users with 6.x and 7.x versions,
 all of which require PHP 7.0+. From the same install statistics, PHP 5.2
 users made up only 3.5% of all installs.

 If we start to require PHP 5.3 as the minimum version (which is already
 EOL and receives no support from php.net or any OS vendor that I know
 off), we can use `phpunit ^4.8` and remove back-ports to 3.x versions
 which would otherwise trigger test errors.

 PHPUnit 8.x has the roadmap that their interfaces will fully utilize PHP
 7.1 parameter type hints and return types, making it highly unlikely that
 we will ever be able to use PHPUnit 8 with the current test
 fixtures/extensions unless we split them into sub packages and add a
 compat layer.

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


More information about the wp-trac mailing list