[wp-trac] [WordPress Trac] #43218: PHPUnit 7.x support

WordPress Trac noreply at wordpress.org
Thu Mar 8 16:02:39 UTC 2018


#43218: PHPUnit 7.x support
------------------------------+------------------------------
 Reporter:  ayeshrajans       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------------------
Changes (by jipmoors):

 * keywords:  needs-patch => has-patch


Comment:

 In the patch I have reduce complexity and dependencies wherever possible.

 Elements that had to be touched:
 The new file "abstract-testcase.php " contains the contents of
 "testcase.php" without the method that is being overridden en gave an
 argument declaration error.

 Removed the dependency in the `PHPUnit_Util_Test` class, as it only needs
 to use the `PHPUnit\Util\Test::parseTestMethodAnnotations` which is a
 public static method, thus callable from everywhere.

 Added a speed-trap loader, which determines what speed-trap class needs to
 be loaded for the current PHPUnit version.

 Fixed a test.
 Fixed the type of variable that is being used to show what bug is being
 reported, this was defaulted to 'null' instead of an empty string.

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


More information about the wp-trac mailing list