https://bugzilla.wikimedia.org/show_bug.cgi?id=34037

       Web browser: ---
             Bug #: 34037
           Summary: make unit test work with PHPUnit invoker
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Unit tests
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


bug 33663 showed that our test suite does not play well when PHP_Invoker is
installed. It is an utility class for invoking PHP callables with a timeout and
is used by PHPUnit whenever it is installed.

>From https://bugzilla.wikimedia.org/show_bug.cgi?id=33663#18 :

--------8<----------------8<-----------------8<---------

The timeout messages comes from PHPUnit. It is most probably caused because
PHP_Invoker is installed ( https://github.com/sebastianbergmann/php-invoker  )
which make PHPUnit think our tests are small and should run in less than a
second.

By looking at the code of PHPUnit, this behavior only happens while in strict
mode (by looking at PHPUnit/Framework/TestResult.php. Can you try editing
MediaWiki file "tests/phpunit/suite.xml", in the very first few lines you
should have something looking like:
 strict="true"

replace it by:
  strict="false"

That should disable strict node and the whole timeout system. If that solve the
issue, we would have to find a way to disable that system entirely.

--------8<----------------8<-----------------8<---------

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to