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

       Web browser: ---
            Bug ID: 49435
           Summary: phpunit doesn't run TextContentTest
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ContentHandler
          Assignee: wikidata-b...@lists.wikimedia.org
          Reporter: daniel.kinz...@wikimedia.de
                CC: wikidata-b...@lists.wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

when running phpunit.php without specifying a target file or class (so, running
all tests or using --group and/or --filter), it does not find/run
TextContentTest and JavaScriptContentTest. The related test classes
CssContentTest and WikitextContentTest work fine.

There seems to be something odd going on here involving inheritance: 
CssContentTest extends JavaScriptContentTest extends TextContentTest extends
MediaWikiLangTestCase. Note that the top class, CssContentTest, works. If I
remove it, JavaScriptContentTest suddenly works! As if phpunit was skipping any
tests class that serve as a base class for another test...

But when I tried to verified this with a minimal test case, I couldn't: both
trivial test classes, the parent and the child, where found and executed.
Strange.

This is with PHPUnit 3.7.19 and PHP 5.4.9-4ubuntu2on Ubuntu. I access my
MediaWiki installation via a symlinked path, but don't use symlinks inside the
install.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to