Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-8264

Warn about deprecated @expectedExceptionXXX phpunit annotations

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Starting with PHPUnit 8.5, the @expectedExceptionXXX annotations are deprecated and, instead 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              moodle.com, Eloy Lafuente (stronk7)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: