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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • 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

              skodak Petr Skoda
              skodak Petr Skoda
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12