Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to run tests in PHP 8 (#1760)
* Add npm command to run tests in wp-env * Add a base env:tests-cmd script * Run composer install before running tests * Upgrade phpunit to 8.5 (latest 8.* minor release) * Void return type must now be specified in certain test methods See 'Return Type of Template Methods' at https://phpunit.de/announcements/phpunit-8.html * Remove calls to deprecated assertInternalType() See sebastianbergmann/phpunit#3368 * Don't generate test cache file * Don't use depreacated canonicalize parameter of assertEquals() * Using assertContains() with string haystacks is deprecated * Upgrade phpunit to 9.6 (latest 9.* minor release) * assertObjectHasAttribute() is deprecated in favour of assertObjectHasProperty() * assertRegExp() is deprecated in favour of assertMatchesRegularExpression() * Remove commented out code * Only run tests against nightly once * In GitHub actions, test under PHP 8.3 instead of 7.4 * Document jobs * In GitHub actions, also test under PHP 7.4 * Add some PHPUnit workflows with PHP 7.4 * Expand GitHub workflows matrix, instead of specifying each job --------- Co-authored-by: Jesús Amieiro Becerra <1667814+amieiro@users.noreply.github.com>
- Loading branch information