Skip to:
Content

Opened 2 years ago

Last modified 21 months ago

#3084 new task

PHPUnit 6 compatibility

Reported by: netweb Owned by: netweb
Milestone: Future Release Priority: high
Severity: normal Version:
Component: Tools - Build Keywords: needs-patch
Cc:

Description

Via #WP39822

PHPUnit no longer supports PHPUnit_Framework_TestCase as the base class.
https://github.com/sebastianbergmann/phpunit/blob/6.0/ChangeLog-6.0.md#600---2017-02-03

$ phpunit 
Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
PHP Fatal error:  Class 'PHPUnit_Framework_TestCase' not found in /Users/miyauchi/wp-core/trunk/tests/phpunit/includes/testcase.php on line 15

I wrote aliases for it.
It looks woking fine with phpunit 5.6 and phpunit 6.

Related:
https://github.com/wp-cli/wp-cli/issues/3802

Change History (1)

#1 @johnjamesjacoby
21 months ago

  • Milestone changed from Awaiting Review to Future Release
  • Owner set to netweb
  • Priority changed from normal to high
  • Type changed from defect to task
Note: See TracTickets for help on using tickets.