Skip to content

Fix PHPUnit warnings.#1944

Merged
aaronweeden merged 2 commits intoubccr:xdmod11.0from
aaronweeden:phpunit-warnings-11.0
Nov 26, 2024
Merged

Fix PHPUnit warnings.#1944
aaronweeden merged 2 commits intoubccr:xdmod11.0from
aaronweeden:phpunit-warnings-11.0

Conversation

@aaronweeden
Copy link
Copy Markdown
Contributor

@aaronweeden aaronweeden commented Nov 8, 2024

Description

This PR fixes warnings emitted by PHPUnit during the CI tests:

Abstract test case classes with "Test" suffix are deprecated
Test case class not matching filename is deprecated

These warnings were not caught by CircleCI, since PHPUnit does not return a non-zero code when there are test runner warnings (as opposed to warnings about the tests themselves), and there does not appear to be a configuration setting to make it do so for these type of warnings. See sebastianbergmann/phpunit#2246 (comment).

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@aaronweeden aaronweeden force-pushed the phpunit-warnings-11.0 branch from 6f7a568 to a810979 Compare November 8, 2024 16:37
@aaronweeden aaronweeden added qa / testing Updates/additions to tests maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality. labels Nov 8, 2024
@aaronweeden aaronweeden added this to the 11.0.1 milestone Nov 8, 2024
@aaronweeden aaronweeden marked this pull request as ready for review November 8, 2024 19:13
jpwhite4
jpwhite4 previously approved these changes Nov 22, 2024
Copy link
Copy Markdown
Member

@jpwhite4 jpwhite4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend ignore the sonar cloud warnings and merge.

@aaronweeden aaronweeden force-pushed the phpunit-warnings-11.0 branch from 37dde22 to d1121e0 Compare November 26, 2024 21:31
@aaronweeden aaronweeden merged commit e53c621 into ubccr:xdmod11.0 Nov 26, 2024
@aaronweeden aaronweeden deleted the phpunit-warnings-11.0 branch November 26, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality. qa / testing Updates/additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants