[wp-trac] [WordPress Trac] #43218: PHPUnit 7.x support
WordPress Trac
noreply at wordpress.org
Wed Mar 7 09:28:17 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: needs-patch | Focuses:
------------------------------+------------------------------
Comment (by soulseekah):
Replying to [comment:7 dingo_bastard]:
> Just to clarify, for unit tests to pass, we need to use PHPUnit 6? I
tried running tests and I got
>
> > PHP Fatal error: Class PHPUnit_Util_Test may not inherit from final
class (PHPUnit\Util\Test) in /vagrant-local/www/wordpress-
develop/tests/phpunit/includes/phpunit6-compat.php on line 18
>
> error. Will downgrading the PHPUnit to v6 get rid of this?
Yes, that's the point. PHPUnit 7 and up will probably not be supported for
years to come. The PHP 7.x return hinting is just too much for our 5.x
files.
`composer require --dev phpunit/phpunit:^6`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43218#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list