Review 11.5 Merged

77693[TASK] Migrate deprecated PHPUnit 9 methods

Nikita Hovratov CR +2 V +2 Hard +155 −167 updated 02/04/23, 10:30

Commit message

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.
Move test with deprecations to UnitDeprecated and remove expectation.

Also update phpunit/phpunit and dependencies to latest version:
> composer req --dev phpunit/phpunit:^9.6.1 -W

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 11