EventChecker - Fix recent regression
authorTim Otten <totten@civicrm.org>
Thu, 18 Nov 2021 00:20:55 +0000 (16:20 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 18 Nov 2021 00:20:55 +0000 (16:20 -0800)
commita4ecaa21f97499dcc3cb53633e1049084587dadb
tree88b9b35f1d6e5184cb60f6854d6c2847b2cc22c0
parent3de82669505be9e3877ecdb07f9d2b7584fe7ee4
EventChecker - Fix recent regression

Overview
--------

v5.43 introduced `Civi/Test/EventChecker.php` as part of the execution of all unit-tests.

`civix` generates unit-tests from various templates. As part of the `civix` update-testing, it makes sundry tests with sundry phpunit.

Before
------

In 5.43.0, when running `civix`'s` `tests/make-example.sh`, it fails on one of the tests when using an older version of phpunit.

After
-----

When running `civix`'s` `tests/make-example.sh`, it passes with all tests.

Comment
-------

The type-hint is too strong -- the actual type-name depends on the version of phpunit. It is, of course, good
to have type-hints, and this preserves the softer `@param` hint.
Civi/Test/EventChecker.php