Changes between Initial Version and Version 1 of Ticket #46149, comment 28
- Timestamp:
- 08/18/2020 09:19:41 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #46149, comment 28
initial v1 4 4 5 5 After 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) 7 7 * 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. 8 8 * Use Traits (PHP 5.4+) as per PR 484 to polyfill newer PHPUnit functionality