saper has uploaded a new change for review.
https://gerrit.wikimedia.org/r/172657
Change subject: Skip ImportTest if allow_url_fopen disabled
......................................................................
Skip ImportTest if allow_url_fopen disabled
Workaround for:
Bug: 73283
Change-Id: I7afbf4dba358c89f9ba78042d82c35df1d2258e8
---
M tests/phpunit/includes/ImportTest.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/57/172657/1
diff --git a/tests/phpunit/includes/ImportTest.php
b/tests/phpunit/includes/ImportTest.php
index 678c89b..d542e8e 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() ) {
--
To view, visit https://gerrit.wikimedia.org/r/172657
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7afbf4dba358c89f9ba78042d82c35df1d2258e8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: saper <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits