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

core_cache_config_writer_testcase::test_add_edit_delete_plugin_instance fails on php 7.1.2 + Opcache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.3
    • 3.2
    • Unit tests

    Description

      Following has been observed for the first time when phpunit is run. Every consecutive run passes.

      1) core_cache_config_writer_testcase::test_add_edit_delete_plugin_instance
      Failed asserting that an array has the key 'addplugintest'.
       
      /var/www/html/moodle/cache/tests/config_writer_test.php:181
      /var/www/html/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit core_cache_config_writer_testcase cache/tests/config_writer_test.php
      

      Steps to reproduce, with PHP 7.1
      1. php admin/tool/phpunit/cli/init.php
      2. vendor/bin/phpunit core_cache_config_writer_testcase cache/tests/config_writer_test.php
      3. ^ Fails.
      4. vendor/bin/phpunit core_cache_config_writer_testcase cache/tests/config_writer_test.php
      5. ^ Now passes.
      6. php admin/tool/phpunit/cli/util.php --drop
      7. php admin/tool/phpunit/cli/init.php
      8. vendor/bin/phpunit core_cache_config_writer_testcase cache/tests/config_writer_test.php
      9. ^ Fails.

      Attachments

        Issue Links

          Activity

            People

              rajeshtaneja Rajesh Taneja
              rajeshtaneja Rajesh Taneja
              Andrew Lyons Andrew Lyons
              Dan Poltawski Dan Poltawski
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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