[buddypress-trac] [BuddyPress Trac] #7463: PHPUnit 6 compatibility

buddypress-trac noreply at wordpress.org
Fri Mar 10 04:28:49 UTC 2017


#7463: PHPUnit 6 compatibility
------------------------------+-----------------------------
 Reporter:  netweb            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
------------------------------+-----------------------------
 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

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7463>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list