Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-36702 PHPUnit improvements 2.4 META
  3. MDL-35479

new debugging support in our phpunit integration

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Unit tests

      Description

      we need new methods in advanced_testcase:

       
          /**
           * Return debugging messages from the current test.
           * @return array with instances having 'message', 'level' and 'stacktrace' property.
           */
          public function getDebuggingMessages();
       
          /**
           * Clear all previous debugging messages in current test.
           */
          public function resetDebugging();
       
          /**
           * Assert that exactly debugging was just called once.
           *
           * Discards the debugging message if successful.
           *
           * @param null|string $debugmessage null means any
           * @param null|string $debuglevel null means any
           * @param string $message
           */
          public function assertDebuggingCalled($debugmessage = null, $debuglevel = null, $message = '');
       
          /**
           * Call when no debugging() messages expected.
           * @param string $message
           */
          public function assertDebuggingNotCalled($message = '');
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                skodak Petr Skoda
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12