Work around test provider running before setUp()
authorBryan Davis <bd808@wikimedia.org>
Thu, 13 Nov 2014 20:18:08 +0000 (13:18 -0700)
committerBryan Davis <bd808@wikimedia.org>
Thu, 13 Nov 2014 20:18:08 +0000 (13:18 -0700)
commit98a34a522452d32485dfda8eaf5fc9c02aa6f53b
treef4189fc6518436b09184a98add7f1cc8a675cf2e
parentf9c50bd7f1fe809c08871ba7147a025d0816b638
Work around test provider running before setUp()

If the xhprof extension is not present we skip running the test, but
phpunit runs the test provider function before that check so we need to
guard against missing constants to avoid spurious warnings in the test
output.

Change-Id: I5541a062ff0c47ca8802315554b3f32dfd01dcd0
tests/phpunit/includes/libs/XhprofTest.php