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

calendar PHPUnit failures on Windows 32-bit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Calendar, Unit tests
    • Labels:

      Description

      While running PHPUnit tests on Windows 32-bit, I encountered the following errors:

      2) core_calendar_externallib_testcase::test_get_calendar_monthly_view_no_course_permission
      coding_exception: Coding error detected, it must be fixed by a programmer: getTimestamp() returned false, please ensure you have passed correct values. This can fail if year is more than 2038 and OS is 32 bit windows
       
      C:\wamp\apps\integration_master\htdocs\lib\moodlelib.php:2097
      C:\wamp\apps\integration_master\htdocs\calendar\classes\type_base.php:240
      C:\wamp\apps\integration_master\htdocs\calendar\externallib.php:977
      C:\wamp\apps\integration_master\htdocs\calendar\tests\externallib_test.php:2270
      C:\wamp\apps\integration_master\htdocs\lib\phpunit\classes\advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit core_calendar_externallib_testcase calendar/tests/externallib_test.php
       
      3) core_calendar_externallib_testcase::test_get_calendar_day_view_no_course_permission
      coding_exception: Coding error detected, it must be fixed by a programmer: getTimestamp() returned false, please ensure you have passed correct values. This can fail if year is more than 2038 and OS is 32 bit windows
       
      C:\wamp\apps\integration_master\htdocs\lib\moodlelib.php:2097
      C:\wamp\apps\integration_master\htdocs\calendar\classes\type_base.php:240
      C:\wamp\apps\integration_master\htdocs\calendar\externallib.php:1045
      C:\wamp\apps\integration_master\htdocs\calendar\tests\externallib_test.php:2314
      C:\wamp\apps\integration_master\htdocs\lib\phpunit\classes\advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit core_calendar_externallib_testcase calendar/tests/externallib_test.php
       
      ERRORS!
      Tests: 8748, Assertions: 90423, Errors: 3, Skipped: 72.
      
      

        Attachments

          Activity

            People

            • Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Nobody
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17