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

Move debugging() to lib/setup.php

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: General
    • Labels:
    • Testing Instructions:
      Hide
      1. Run phpunit
      2. Run Behat

      Unfortunately, there are no explicit tests for debugging(), but it is used in a number of places in the unit tests. I briefly looked at writing some, but most of the cases which we would want to test are untestable (they depend upon CLI_SCRIPT, they write to error_log, etc.).

      Show
      Run phpunit Run Behat Unfortunately, there are no explicit tests for debugging(), but it is used in a number of places in the unit tests. I briefly looked at writing some, but most of the cases which we would want to test are untestable (they depend upon CLI_SCRIPT, they write to error_log, etc.).
    • Affected Branches:
      MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-51764-master

      Description

      As highlighted in MDL-51011, debugging() is only defined in lib/weblib.php

      This should be moved to lib/setuplib.php so that it is defined early enough to be used throughout Moodle.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: