Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7170

Some phpunit tests are failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 3.4.1
    • None
    • 4.4
    • MOODLE_34_STABLE

      Since I converted all tests that were included in variables.php into phpunit tests, 3 tests are failing :

      • array(false, 'a=3 6;') 

        in the test_evaluate_assignments_1 produces a 

        parseerror unexpected '$a' (T_VARIABLE)

      • array(false, 'a-'),

        in the test_numerical_formula_2 test produces a

         parse error unexpected '(', expecting ',' or ')'

      • array(false, '*a'),

        in the test_numerical_formula_2 test produces a **

        parseerror unexpected '*'

      The common point to these failures seems to be that invalid content is send to the evaluate_numerical_expression without being detected and stopped by an exception before. Needs some investigations.

            jmvedrine Jean-Michel Vedrine
            jmvedrine Jean-Michel Vedrine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.