Handle phpunit being autoloaded from checkLess.php
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 8 Dec 2014 18:28:21 +0000 (10:28 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 8 Dec 2014 18:30:01 +0000 (10:30 -0800)
commit13406eca22c5c4cf9a1e31e75d5ba408e5feabda
tree4083e37ccc939f70b9d473d73c9d057534ddbd87
parentd1804d386d5c7382429324ad15fc177d4c6433da
Handle phpunit being autoloaded from checkLess.php

When phpunit is available via the autoloader, rather than directly in the
include path, checkLess was erroring out.  Additionally
RequestContext::resetMain() was outputting warnings due to MW_PHPUNIT_TEST
not being defined.

Change-Id: I28921c018daa59b2da78ffb5312690d1ce8fbb0a
maintenance/checkLess.php