[wp-trac] [WordPress Trac] #59394: Fix failing unit tests
WordPress Trac
noreply at wordpress.org
Tue Sep 19 14:29:14 UTC 2023
#59394: Fix failing unit tests
------------------------------+-------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.4
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
PHPUnit x.y.z was released earlier today with a change that addresses a
[https://github.com/php/php-src/pull/11169 breaking change upstream from
PHP].
This causes two failures in the Core test suite:
{{{
There were 2 failures:
1)
Tests_Admin_WpAutomaticUpdater::test_is_allowed_dir_should_return_true_if_open_basedir_is_set_and_path_is_allowed
Test was run in child process and ended unexpectedly
phpvfscomposer:///var/www/vendor/phpunit/phpunit/phpunit:97
/var/www/vendor/bin/phpunit:118
2)
Tests_Admin_WpAutomaticUpdater::test_is_allowed_dir_should_return_false_if_open_basedir_is_set_and_path_is_not_allowed
Test was run in child process and ended unexpectedly
phpvfscomposer:///var/www/vendor/phpunit/phpunit/phpunit:97
/var/www/vendor/bin/phpunit:118
}}}
Three versions of PHPUnit were released. Any changes made to fix these
failing tests will need to be backported to any branch that uses:
- [https://github.com/sebastianbergmann/phpunit/releases/tag/10.3.5
PHPUnit 10.3.5]
- [https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.13
PHPUnit 9.6.13]
- [https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.34
PHPUnit 8.5.34]
Props @mukeshpanchal27 for
[https://wordpress.slack.com/archives/C02RQBWTW/p1695114102406539 the
original report].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59394>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list