test: helper to skip tests depending on 'gzip'
authorAntoine Musso <hashar@free.fr>
Mon, 28 Jan 2013 15:09:17 +0000 (16:09 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 29 Jan 2013 09:52:21 +0000 (09:52 +0000)
commit5a547ac784608eaa03fbc3f1b5e6cb41ed26b3ba
tree9688d05fc29fc3ad72c15bdf3bb29eff9d0e52c9
parentdcbdcf07810580e820e53b24b6c3b9d4c3ca37a3
test: helper to skip tests depending on 'gzip'

Some of our tests explicitly depends on the 'gzip' command line utility,
for example the Dumps test suite.  This patch adds up a simple helper
MediaWikiTestCase::checkHasGzip() which skips tests whenever gzip is
missing.

Change-Id: I5ded9a53d08dcf5f35e666f91e3f64e6e111af32
tests/phpunit/MediaWikiTestCase.php