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

       Web browser: ---
             Bug #: 33743
           Summary: phpunit reports identical strings as different
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Created attachment 9857
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9857
A patch that causes the problem.

I'm sorry about the few details in the description.

I made the changes in the attached patch in my tree (the patch is supposed to
address in r107365). I ran "php phpunit.php" and received the following error:

==========================
4) ParserTests::testParserTest with data set #623 ('Space normalisation on
autocomment (bug 22784)', '/* __hello__world__ */', '<a
href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span
dir="auto"><span class="autocomment">__hello__world__</span></span>', 'comment
title=[[Main Page]]', '')
Space normalisation on autocomment (bug 22784)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span
dir="auto"><span class="autocomment">__hello__world__</span></span>'
+'<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span
dir="auto"><span class="autocomment">__hello__world__</span></span>'
==========================

It seems like the strings are the same, but they are reported as different.

Other changed tests were reported as failing for the same reason, too.

Reedy suggested opening a bug.

-- 
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