WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2021 11:02:13 PM (4 months ago)
Author:
hellofromTonya
Message:

Build/Test Tools: Introduce the PHPUnit Polyfills package for easier cross branch testing.

This backports the PHPUnit Polyfills package and related test infrastructure changes to make it easier for developers to continue testing on multiple versions WordPress while adding tests for newer versions of PHP, which require more modern PHPUnit practices.

One of the changes included is the addition of wrappers for the new snake_case fixture methods in PHPUnit. This allows the native camelCase standard in PHPUnit to be used, but allows for developers to transition to the new naming conventions.

Props hellofromTonya, jrf, SergeyBiryukov, johnbillion, netweb, schlessera, jeherve, lucatume, desrosj.
Merges [51559,51560,51810-51813,51828] to the 5.4 branch.
See #53911.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/composer.json

    r49318 r51844  
    1616        "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7.0",
    1717        "wp-coding-standards/wpcs": "~2.1.0",
    18         "phpcompatibility/phpcompatibility-wp": "^2.1.0"
     18        "phpcompatibility/phpcompatibility-wp": "^2.1.0",
     19        "phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5",
     20        "yoast/phpunit-polyfills": "^1.0.1"
    1921    },
    2022    "scripts": {
Note: See TracChangeset for help on using the changeset viewer.