Followup to r89452, remove ftp test cases since Http::isValidUri() doesn't do ftp...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 16 Jun 2011 02:58:00 +0000 (02:58 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 16 Jun 2011 02:58:00 +0000 (02:58 +0000)
tests/phpunit/includes/HttpTest.php

index d54e7f4..2877d4d 100644 (file)
@@ -558,10 +558,9 @@ class HttpTest extends MediaWikiTestCase {
                return array(
                        array( false, '¿non sens before!! http://a', 'Allow anything before URI' ),
 
-                       # (ftp|http|https) - only three schemes allowed
+                       # (http|https) - only three schemes allowed
                        array( true,  'http://www.example.org/' ),
                        array( true,  'https://www.example.org/' ),
-                       array( true,  'ftp://www.example.org/' ),
                        array( true,  'http://www.example.org', 'URI without directory' ),
                        array( true,  'http://a', 'Short name' ),
                        array( true, 'http://étoile', 'Allow UTF-8 in hostname' ),  # 'étoile' is french for 'star'
@@ -590,8 +589,6 @@ class HttpTest extends MediaWikiTestCase {
                        array( true, 'https://example.org:80/' ),
                        array( true, 'http://example.org:443/' ),
                        array( true, 'https://example.org:443/' ),
-                       array( true, 'ftp://example.org:1/', 'Minimum' ),
-                       array( true, 'ftp://example.org:65535/', 'Maximum port number' ),
 
                        # Part after the hostname is / or / with something else
                        array( true, 'http://example/#' ),