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

mod_lti phpunit failure under windows

    XMLWordPrintable

    Details

      Description

      While working on MDL-54205 (other phpunit problems in windows) it was discovered this failure:

      $ vendor/bin/phpunit  mod_lti_service_exception_handler_testcase mod\lti\tests\service_exception_handler_test.php
       
      Moodle 3.1beta+ (Build: 20160510), 7804cfa8feeba6be415e3d19ab5fd6da8f14dad4
      Php: 5.4.25, Postgres: 9.3.4, OS: Windows NT 6.1 i586
      PHPUnit 4.8.24 by Sebastian Bergmann and contributors.
       
      ..F
       
      Time: 2.79 seconds, Memory: 32.00Mb
       
      There was 1 failure:
       
      1) mod_lti_service_exception_handler_testcase::test_handle_log
      Failed asserting that 0 matches expected 1.
       
      \mod\lti\tests\service_exception_handler_test.php:83
      \lib\phpunit\classes\advanced_testcase.php:80
       
      To re-run:
      vendor/bin/phpunit  mod_lti_service_exception_handler_testcase mod\lti\tests\service_exception_handler_test.php
       
      FAILURES!
      Tests: 3, Assertions: 4, Failures: 1.
      

      it seems to pass perfectly under mac and unix, not windows. Note the php version used is 5.4, don't know if that's related.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Integrator:
              Andrew Nicols
              Tester:
              cameron1729
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16