Starting with PHPUnit 8.5, the @expectedExceptionXXX annotations are deprecated and, instead of the ->expectExceptionXXX() methods should be used, exactly before the line that is going to throw the exception.
This issue is about to enable moodlecheck (or, if easier, codechecker) to be aware of this deprecation, starting to warn about it. Ideally, only for 310 and up, if that's possible.
Starting with PHPUnit 8.5, the @expectedExceptionXXX annotations are deprecated and, instead of the ->expectExceptionXXX() methods should be used, exactly before the line that is going to throw the exception.
This issue is about to enable moodlecheck (or, if easier, codechecker) to be aware of this deprecation, starting to warn about it. Ideally, only for 310 and up, if that's possible.
Reporter: Eloy Lafuente Original issue: https://tracker.moodle.org/browse/CONTRIB-8264