Opened 8 years ago
Closed 8 years ago
#7463 closed defect (bug) (fixed)
PHPUnit 6 compatibility
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch commit |
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.
Attachments (1)
Change History (5)
#2
@
8 years ago
- Keywords reporter-feedback removed
- Milestone changed from Awaiting Review to 3.0
@netweb can you just get this done in trunk, please?
#3
@
8 years ago
- Keywords has-patch commit added
Tested 7463.patch on my fork https://travis-ci.org/ntwb/BuddyPress/builds/267086745
Note: See
TracTickets for help on using
tickets.
PHPUnit 6 support was added to WP 4.7-branch as of https://core.trac.wordpress.org/ticket/39822#comment:25.
Do we want to specify a specific version of PHPUnit to use with Travis for WP 4.7 tests?