WordPress.org

Make WordPress Core

Changeset 47881 for trunk/composer.json


Ignore:
Timestamp:
06/01/2020 08:29:06 PM (13 months ago)
Author:
ocean90
Message:

Build/Test Tools: Add PHPUnit to Composer dev dependencies.

This helps setting up the correct version of PHPUnit to run WordPress core tests locally and for using it as source for code autocompletion in tests. Also introduces a new Composer script test to run the PHPUnit tests.

Props welcher, ayeshrajans, vinkla, johnbillion, Rarst, netweb, ocean90.
Fixes #46815.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r47389 r47881  
    1616        "dealerdirect/phpcodesniffer-composer-installer": "~0.6.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 || ^6.5 || ^7.5"
    1920    },
    2021    "scripts": {
     
    2223        "format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source",
    2324        "lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source",
    24         "lint:errors": "@lint -n"
     25        "lint:errors": "@lint -n",
     26        "test": "@php ./vendor/phpunit/phpunit/phpunit"
    2527    }
    2628}
Note: See TracChangeset for help on using the changeset viewer.