View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035223 | mantisbt | other | public | 2025-01-09 10:55 | 2025-01-15 10:45 |
Reporter | raspopov | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | reopened | ||
Product Version | 2.27.0 | ||||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0035223: MantisBT tests are not compatible with PHPUnit 11.5 | ||||
Description | The execution of tests is interrupted by several warnings about outdated signatures of the methods of the test providers. | ||||
Tags | No tags attached. | ||||
Thanks for this, but that can't be merged in the near future, the reason being that PHPUnit 11 requires PHP 8.2 or later, which is not compatible with MantisBT minimum requirements (7.4). Our test suite is currently targeted at 9.6, which you should be running with vendor/bin/phpunit from the MantisBT root. For the record I already faced some issues while testing PHPUnit 10 a few months back, see https://github.com/mantisbt/mantisbt/compare/master...dregad:mantisbt:phpunit-10-getname |
|
Complete the compatibility with PHPUnit 11.
The two failures are a known issue with Parsedown 1.8. |
|
"PHPUnit Deprecations" relate solely to the future requirement to use PHP attributes instead of comments for PHPUnit 12. |
|
MantisBT: master 537ea036 2025-01-09 10:34 Committer: dregad Details Diff |
PHPUnit provider signatures must be static Non-static providers deprecated in PHPUnit 10.0, removed in 11.0 [1]. Fixes 0035223, PR https://github.com/mantisbt/mantisbt/pull/2069 [1]: https://github.com/sebastianbergmann/phpunit/issues/5100 |
Affected Issues 0035223 |
|
mod - plugins/MantisCoreFormatting/tests/MarkdownTest.php | Diff File | ||
mod - tests/Mantis/ConfigParserTest.php | Diff File | ||
mod - tests/Mantis/Helper/ArrayTransposeTest.php | Diff File | ||
mod - tests/Mantis/Helper/GetLinkAttributesTest.php | Diff File | ||
mod - tests/Mantis/MentionParsingTest.php | Diff File | ||
mod - tests/Mantis/PluginTest.php | Diff File | ||
mod - tests/Mantis/PrepareTest.php | Diff File | ||
mod - tests/Mantis/StringTest.php | Diff File | ||
mod - tests/Mantis/UserApiTest.php | Diff File | ||
mod - tests/rest/RestIssueTest.php | Diff File | ||
mod - tests/rest/RestIssueUpdateVersion.php | Diff File | ||
mod - tests/rest/RestProjectVersionTest.php | Diff File | ||
mod - tests/rest/RestUserTest.php | Diff File | ||
MantisBT: master 382b34e2 2025-01-09 10:36 Committer: dregad Details Diff |
Fix wrong parameter names PHPUnit 10.5 deprecated use of string array keys that do not match the method arguments [1], causes error in PHPUnit 11. Fixes 0035223, PR https://github.com/mantisbt/mantisbt/pull/2069 [1]: https://github.com/sebastianbergmann/phpunit/pull/5812 |
Affected Issues 0035223 |
|
mod - tests/Mantis/Helper/GetLinkAttributesTest.php | Diff File |