Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46149, comment 28


Ignore:
Timestamp:
08/18/2020 09:19:41 AM (4 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46149, comment 28

    initial v1  
    44
    55After talking through things with an unnamed committer, I suspect the best option might be to shim the functions in question.
    6  * Move from `setUp()` to something prefixed like `_setUp()` (plus all the other newly void functions)
     6 * Move from `setUp()` to something prefixed like `_setUp()` in all the actual Unit Tests (plus all the other newly void functions)
    77 * Conditionally load a `WP_UnitTestCase` class which defines `setUp()` as either non-void for older PHPUnits+PHPs or with Void for newer PHPUnits, which calls said `_setUp()` method instead.
    88 * Use Traits (PHP 5.4+) as per PR 484 to polyfill newer PHPUnit functionality