Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace most usages of deprecated PHPUnit setMethods() function #2086

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

sbelsk
Copy link
Collaborator

@sbelsk sbelsk commented Mar 16, 2024

This PR is the second in the series for addressing changes that will need to be made before #1866 can be merged. The PHPUnit function setMethods() is deprecated, so our usages of it were switched to onlyMethods() instead. The only locations that weren't updated and still being suppressed in phpstan-baseline.neon are:

  • app/cdash/include/Test/CDashTestCase.php
  • app/cdash/include/Test/CDashUseCaseTestCase.php
  • app/cdash/tests/case/CDash/Lib/Repository/GitHubTest.php
  • app/cdash/tests/case/CDash/Model/BuildErrorTest.php
  • tests/Unit/app/Validators/PasswordTest.php

since a simple replacement of setMethods() by onlyMethods() does not work for these cases.

Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
@williamjallen williamjallen added this pull request to the merge queue Mar 17, 2024
Merged via the queue into Kitware:master with commit 509aa64 Mar 17, 2024
2 checks passed
@sbelsk sbelsk deleted the phpunit-deprecated-setMethods branch March 23, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants