X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fmaintenance%2Fbackup_LogTest.php;h=afd8f437304b65c0e9d12d120d3bd3cb8229185e;hb=04b47c018040aa8cf520cbbaab4071dac54a6b27;hp=8a8dea5a4ddf4ff490edddbf03a32a58b1d08a9b;hpb=364be04f3f194094ca08c098ac4cae53da2f4e74;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/maintenance/backup_LogTest.php b/tests/phpunit/maintenance/backup_LogTest.php index 8a8dea5a4d..afd8f43730 100644 --- a/tests/phpunit/maintenance/backup_LogTest.php +++ b/tests/phpunit/maintenance/backup_LogTest.php @@ -172,6 +172,8 @@ class BackupDumperLoggerTest extends DumpTestCase { function testXmlDumpsBackupUseCaseLogging() { global $wgContLang; + $this->checkHasGzip(); + // Preparing the dump $fname = $this->getNewTempFile(); $dumper = new BackupDumper( array ( "--output=gzip:" . $fname, @@ -186,7 +188,7 @@ class BackupDumperLoggerTest extends DumpTestCase { // to be able to alert (once dumping produces reports) that this test // needs updates. $dumper->stderr = fopen( 'php://output', 'a' ); - if ( $dumper->stderr === FALSE ) { + if ( $dumper->stderr === false ) { $this->fail( "Could not open stream for stderr" ); }