From: saper Date: Tue, 11 Nov 2014 22:53:45 +0000 (+0100) Subject: Skip ImportTest if allow_url_fopen disabled X-Git-Tag: 1.31.0-rc.0~9866^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=ae1729a24b1cb48af43b729f675f9f1e75bb84aa;p=lhc%2Fweb%2Fwiklou.git Skip ImportTest if allow_url_fopen disabled Workaround for: Bug: 73283 Change-Id: I7afbf4dba358c89f9ba78042d82c35df1d2258e8 --- diff --git a/tests/phpunit/includes/ImportTest.php b/tests/phpunit/includes/ImportTest.php index ea753e815f..7ef44e790b 100644 --- a/tests/phpunit/includes/ImportTest.php +++ b/tests/phpunit/includes/ImportTest.php @@ -10,6 +10,9 @@ class ImportTest extends MediaWikiLangTestCase { private function getInputStreamSource( $xml ) { + if ( ini_get( 'allow_url_fopen' ) != 1 ) { + $this->markTestSkipped( 'bug 73283: this test needs allow_url_fopen to be enabled' ); + } $file = 'data:application/xml,' . $xml; $status = ImportStreamSource::newFromFile( $file ); if ( !$status->isGood() ) {