Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try switching to phpunit-polyfills (#4966)
* Try switching to phpunit-polyfills * Extend from polyfills TestCase * Didn't save one * Upgrade phpunit before testing. Also test on PHP 8. * Add ReturnTypeWillChange * ReturnTypeWillChange is no good here; use the yoast polyfills snake_case methods instead. * Missed one. * Avoid infinite loop * Argh typo * Only update phpunit version if php version >= 8 * For some reason, Circle is not getting a status code 1 from test failures from unish.sh. Works locally. Let's try calling phpunit directly. * Add explicit assertions for the benefit of phpunit 9 * Convert from assertFileNotExists to assertFileDoesNotExist * Convert from assertNotContains to assertStringNotContainsString * Extend \PHPUnit\Framework\AssertionFailedError instea of \PHPUnit_Framework_AssertionFailedError * Fixed assertion that was asserting the wrong value * Some assertion updates that were not saved and committed earlier * Fix testUpdateStatusDrush to work with php 8 * Fix loadHTMLFile for php 8 * Update to annotated-command 2.12.2 * Update assertRegExp to assertMatchesRegularExpression * Defensively guard columns access in logger for php 8 * Must use set_up, not constructor in phpunit tests * More misc phpunit-9 fixes * More test cleanup * Put in a test that always fails to see how many of the test scenarios in CircleCI are marked as failures. * Guard "defines" with if statements in preflight.inc. * More defensive defines / shutdown handler guard. * Revert "Put in a test that always fails to see how many of the test scenarios in CircleCI are marked as failures." This reverts commit 8762b13.
- Loading branch information