Allow debugging of unit tests via wfDebugLog.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 17 Jul 2013 19:23:28 +0000 (21:23 +0200)
committerDaniel Kinzler <daniel.kinzler@wikimedia.de>
Thu, 25 Jul 2013 09:54:14 +0000 (09:54 +0000)
commit41e2e116e268406de043ba36bb07c04c514b6832
tree03241759c785a66c6b914898d03a81f0eb5aab1a
parent3342fafb4839a27b0be3a6e02149e1accf63cc87
Allow debugging of unit tests via wfDebugLog.

This adds a listener to the PHPUnit test runner that will report
testing progress via wfDebugLog. This is useful for debugging
situations in which phpunit itself fails to report errors and
does not terminate normally. Having a debug log should at least
help with locating the trigger of the problem.

Change-Id: I433537a7f26197d8cff6f133e26ae5709871500f
tests/TestsAutoLoader.php
tests/phpunit/MediaWikiPHPUnitCommand.php
tests/phpunit/MediaWikiPHPUnitTestListener.php [new file with mode: 0644]