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

WordPress Trac noreply at wordpress.org
Thu Feb 9 16:14:41 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                   |  Resolution:
 Keywords:  needs-refresh has-patch  |     Focuses:
-------------------------------------+------------------------------

Comment (by jdgrimes):

 Replying to [comment:2 miyauchi]:

 I think that this should work fine on PHP 5.2:

 {{{#!php
 <?php
 if ( class_exists( 'PHPUnit\Runner\Version' ) {
     require_once dirname( __FILE__ ) . '/phpunit-6-compat.php';
 }
 }}}

 In the `phpunit-6-compat.php` file would be the rest of the code, of
 course.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39822#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list