Make WordPress Core


Ignore:
Timestamp:
09/21/2021 07:04:34 PM (3 years ago)
Author:
desrosj
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.8 branch.
See #53911.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/composer.lock

    r49571 r51838  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "463db2b4afb439fb63d93173c0852e27",
     7    "content-hash": "d8bcbf1466f6595287a44721f525844d",
    88    "packages": [],
    99    "packages-dev": [
     
    18281828            ],
    18291829            "time": "2020-05-13T23:57:56+00:00"
     1830        },
     1831        {
     1832            "name": "yoast/phpunit-polyfills",
     1833            "version": "1.0.1",
     1834            "source": {
     1835                "type": "git",
     1836                "url": "https://github.com/Yoast/PHPUnit-Polyfills.git",
     1837                "reference": "f014fb21c2b0038fd329515d59025af42fb98715"
     1838            },
     1839            "dist": {
     1840                "type": "zip",
     1841                "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/f014fb21c2b0038fd329515d59025af42fb98715",
     1842                "reference": "f014fb21c2b0038fd329515d59025af42fb98715",
     1843                "shasum": ""
     1844            },
     1845            "require": {
     1846                "php": ">=5.4",
     1847                "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
     1848            },
     1849            "require-dev": {
     1850                "php-parallel-lint/php-console-highlighter": "^0.5",
     1851                "php-parallel-lint/php-parallel-lint": "^1.3.0",
     1852                "yoast/yoastcs": "^2.1.0"
     1853            },
     1854            "type": "library",
     1855            "extra": {
     1856                "branch-alias": {
     1857                    "dev-main": "1.x-dev",
     1858                    "dev-develop": "1.x-dev"
     1859                }
     1860            },
     1861            "autoload": {
     1862                "files": [
     1863                    "phpunitpolyfills-autoload.php"
     1864                ]
     1865            },
     1866            "notification-url": "https://packagist.org/downloads/",
     1867            "license": [
     1868                "BSD-3-Clause"
     1869            ],
     1870            "authors": [
     1871                {
     1872                    "name": "Team Yoast",
     1873                    "email": "support@yoast.com",
     1874                    "homepage": "https://yoast.com"
     1875                },
     1876                {
     1877                    "name": "Contributors",
     1878                    "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors"
     1879                }
     1880            ],
     1881            "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests",
     1882            "homepage": "https://github.com/Yoast/PHPUnit-Polyfills",
     1883            "keywords": [
     1884                "phpunit",
     1885                "polyfill",
     1886                "testing"
     1887            ],
     1888            "support": {
     1889                "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues",
     1890                "source": "https://github.com/Yoast/PHPUnit-Polyfills"
     1891            },
     1892            "time": "2021-08-09T16:28:08+00:00"
    18301893        }
    18311894    ],
     
    18391902    },
    18401903    "platform-dev": [],
    1841     "plugin-api-version": "1.1.0"
     1904    "plugin-api-version": "2.1.0"
    18421905}
Note: See TracChangeset for help on using the changeset viewer.