mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Build/Test Tools: Add Composer dependency on the PHPUnit Polyfills package.
The PHPUnit Polyfills package is an add-on for PHPUnit, which works around common issues for writing PHPUnit cross-version compatible tests. Features: * It offers a full set of polyfills for assertions and expectations introduced in PHPUnit since PHPUnit 4.8. * It offers two generic TestCases which include these polyfills, but also solve the `void` return type issue for the fixtures methods. * It offers a PHPUnit cross-version solution for the changes to the PHPUnit `TestListener` implementation. * Supports PHPUnit 4.8 – current. * Supports and is compatible with PHP 5.4 – current. The package has no outside dependencies, other than PHPUnit, is actively maintained and endorsed by the maintainer of PHPUnit itself (the only package of its kind which has ever been endorsed). Props jrf, hellofromTonya, johnbillion, netweb, SergeyBiryukov. See #46149. git-svn-id: https://develop.svn.wordpress.org/trunk@51559 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
00140db135
commit
8ebd8ec0e4
@ -17,7 +17,8 @@
|
||||
"squizlabs/php_codesniffer": "3.6.0",
|
||||
"wp-coding-standards/wpcs": "~2.3.0",
|
||||
"phpcompatibility/phpcompatibility-wp": "~2.1.2",
|
||||
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
|
||||
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5",
|
||||
"yoast/phpunit-polyfills": "^1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"compat": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcompat.xml.dist --report=summary,source",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user