Skip to:
Content

bbPress.org

Opened 8 years ago

Last modified 8 years ago

#3084 new task (blessed)

PHPUnit 6 compatibility

Reported by: netweb's profile netweb Owned by: netweb's profile 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
8 years 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.