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

The 64-bit environment check PHPUnit test fails for 32-bit PHP versions

XMLWordPrintable

    • MOODLE_31_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_31_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-64285-master
    • Hide

      On a 32-bit PHP version, make sure this test passes:

      vendor/bin/phpunit "core_environment_testcase" lib/tests/environment_test.php
       

      Show
      On a 32-bit PHP version, make sure this test passes: vendor/bin/phpunit "core_environment_testcase" lib/tests/environment_test.php

      While running PHPUnit on my Windows 7 32-bit VM, I got this.

      1) core_environment_testcase::test_environment
      Problem detected in environment (custom_check:php not 64 bits), fix all warnings and errors!
      Failed asserting that false is true.C:\inetpub\wwwroot\imaster\lib\tests\environment_test.php:63
      C:\inetpub\wwwroot\imaster\lib\phpunit\classes\advanced_testcase.php:80To re-run:
       vendor/bin/phpunit "core_environment_testcase" lib/tests/environment_test.php
       

      I think that this should be marked skipped though for 32-bit PHP versions.

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            Andrew Lyons Andrew Lyons
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            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.