[wp-trac] [WordPress Trac] #39822: PHPUnit 6 compatibility

WordPress Trac noreply at wordpress.org
Thu Feb 9 11:32:10 UTC 2017


#39822: PHPUnit 6 compatibility
------------------------------+-----------------------------
 Reporter:  miyauchi          |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 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://core.trac.wordpress.org/ticket/39822>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list