Tweak HttpTest following r89278:
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2011 21:25:45 +0000 (21:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2011 21:25:45 +0000 (21:25 +0000)
* remove FTP test case URL (shouldn't actually work, and as a directory listing, not super stable)
* remove old test case URLs that are now 30x redirects (example.com and a toolserver link), which broke the comparison tests
* added in http://en.wikipedia.org/robots.txt so we've got a nice basic fetch on one of our servers too

Now this test class is down to 3 failures, in URL & domain validation stuff

tests/phpunit/includes/HttpTest.php

index c489ebb..825437a 100644 (file)
@@ -17,11 +17,9 @@ class HttpTest extends MediaWikiTestCase {
        static $has_proxy = false;
        static $proxy = "http://hulk:8080/";
        var $test_geturl = array(
-               "ftp://ftp.kernel.org/",
-               "http://www.example.com/",
+               "http://en.wikipedia.org/robots.txt",
                "https://secure.wikimedia.org/",
                "http://pecl.php.net/feeds/pkg_apc.rss",
-               "http://toolserver.org/~jan/poll/dev/main.php?page=wiki_output&id=3",
                "http://meta.wikimedia.org/w/index.php?title=Interwiki_map&action=raw",
                "http://www.mediawiki.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:MediaWiki_hooks&format=php",
        );