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

RSS notices in php7 unit test execution

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • RSS, Unit tests

    Description

      As reported by Raj in MDL-50565:

      There are 2 notices in phpunit with current patch which are not being handled by "error Control Operators" in php7 (@)

      The notices are being generated by:

      1. blocks/rss_client/tests/cron_test.php
      2. lib/tests/rsslib_test.php

      Masking E_USER_NOTICE in test case fix the problem.

      -        @$block->cron();
      +        error_reporting($CFG->debug & ~E_USER_NOTICE);
      +        $block->cron();
      +        error_reporting($CFG->debug);
      

      Attachments

        Activity

          People

            dmonllao David Monllaó
            poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            CiBoT CiBoT
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21/Dec/15