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

       Web browser: ---
             Bug #: 42174
           Summary: PHPUnit parser tests do not work with simply named
                    extension parser tests
           Product: MediaWiki
           Version: unspecified
          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],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Inside of an extension create a parser tests file, name it parserTests.txt, and
use $wgParserTestFiles[] = __DIR__ . '/parserTests.txt';

Running parserTests will work perfectly fine. However attempting to run unit
tests will result in the following.

PHP Fatal error:  Cannot redeclare class ParserTests in
{core}/tests/phpunit/includes/parser/MediaWikiParserTest.php(27) : eval()'d
code on line 3

It appears that the phpunit parser test code makes really generic class names
for parser test files based on the filename alone completely ignoring different
paths.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
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