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

CFG undefined when generating code coverage for LTI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.9.1, 2.9.2
    • LTI External tool

      We were generating code coverage with PHPUnit for LTI and the generation errors out with debugging messages like this:

      ~$ vendor/bin/phpunit --testsuite mod_lti_testsuite --coverage-html mod_lti_coverage
      Moodle 2.8.6 (Build: 20150511), mysqli, 1460f0273ca2f0af53fd7e0441be77d11b90d20e
      PHPUnit 3.7.38 by Sebastian Bergmann.
       
      Configuration read from /www/moodle/phpunit.xml
       
      ..........
       
      Time: 59.33 seconds, Memory: 95.00Mb
       
      OK (10 tests, 39 assertions)
       
      Generating code coverage report in HTML format ...
      Notice: Undefined variable: CFG in /www/moodle/mod/lti/service/toolproxy/classes/local/resource/toolproxy.php on line 31
      

      Because of that the coverage generation aborts.

            sbc24 Sam Chaffee
            sbc24 Sam Chaffee
            Simey Lameze Simey Lameze
            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.