Skip to:
Content

BuddyPress.org

Changeset 13314 for trunk/composer.json


Ignore:
Timestamp:
08/13/2022 08:58:51 AM (21 months ago)
Author:
imath
Message:

Fully enjoy Yoast’s PHPUnit polyfills

Using these polyfills let us use PHPUnit v9.x for our tests and add PHP 8.1 to our testing matrix. Some additional edits to our PHP unit tests suite were needed:

  • Stop using PHPunit deprecated functions.
  • Rename some BP_UnitTestCase methods to use Yoast's polyfills.
  • Edit the PHP Unit test GH action and also run this action on pull requests.
  • Update some composer dependencies, remove the one about phpunit/phpunit:^7.5 and add a new composer script to use PHPUnit v9.x.

Props renatonascalves, rafiahmedd

Closes https://github.com/buddypress/buddypress/pull/13
Fixes #8649

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r13285 r13314  
    2727        "wiki": "https://codex.buddypress.org/"
    2828    },
     29    "config": {
     30        "allow-plugins": {
     31            "composer/installers": true,
     32            "dealerdirect/phpcodesniffer-composer-installer": true
     33        }
     34    },
    2935    "require": {
    3036        "composer/installers": "^1.10.0",
     
    3238    },
    3339    "require-dev": {
    34         "phpcompatibility/phpcompatibility-wp": "^2.1.0",
     40        "phpcompatibility/phpcompatibility-wp": "^2.1.3",
    3541        "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
    36         "squizlabs/php_codesniffer" : "^3.5.4",
    37         "wp-coding-standards/wpcs": "*",
     42        "squizlabs/php_codesniffer" : "^3.6.0",
     43        "wp-coding-standards/wpcs": "~2.3.0",
    3844        "wp-phpunit/wp-phpunit": "^6.0",
    39         "phpunit/phpunit": "^7.5",
    4045        "yoast/phpunit-polyfills": "^1.0.1"
     46    },
     47    "scripts": {
     48        "test": "@php ./vendor/phpunit/phpunit/phpunit"
    4149    }
    4250}
Note: See TracChangeset for help on using the changeset viewer.