Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44339

phpunit does not fail on unexpected debugging

XMLWordPrintable

      how to reproduce:

      insert in the first test in mod/forum/tests/events_test.php :

      debugging('Debugging message should be an error!', DEBUG_DEVELOPER);
      

      and then run:

      vendor/bin/phpunit --stop-on-error --stop-on-failure --stop-on-incomplete mod_forum_events_testcase mod/forum/tests/events_test.php
      

      It does not stop, in fact it finishes with "OK" but displays debugging backtrace in the middle of the test.

            skodak Petr Skoda
            marina Marina Glancy
            Ankit Agarwal Ankit Agarwal
            Marina Glancy Marina Glancy
            Jetha Chan Jetha Chan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.