Skip to content
Snippets Groups Projects
Commit f317ddb4 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[TASK] Migrate deprecated PHPUnit 9 methods

Since the recent release of PHPUnit 9.6 some new deprecations were added
which signal breaking changes for version 10. As deprecations are
causing our tests to fail, they need to be addressed immediately.

Method `expectErrorMessage` replaced with `expectExceptionMessage`.
Method `getMockClass` replaced with `createMock` and a subsequent
get_class call.

Also update phpunit/phpunit to latest version:
> composer update phpunit/phpunit
> composer bump phpunit/phpunit

Resolves: #99817
Releases: main, 11.5
Change-Id: I6d01ccca398a8ff5db735a35b19061b711c843cc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77692


Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 5d27b2ae
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment