parent::setUp();
$this->setMwGlobals( 'wgUrlProtocols', array(
- '//', 'http://', 'file://', 'mailto:',
+ '//',
+ 'http://',
+ 'https://',
+ 'file://',
+ 'mailto:',
) );
}
* @dataProvider provideURLs
*/
public function testWfParseUrl( $url, $parts ) {
- $partsDump = var_export( $parts, true );
$this->assertEquals(
$parts,
- wfParseUrl( $url ),
- "Testing $url parses to $partsDump"
+ wfParseUrl( $url )
);
}
'host' => 'example.org',
)
),
+ array(
+ 'https://example.org',
+ array(
+ 'scheme' => 'https',
+ 'delimiter' => '://',
+ 'host' => 'example.org',
+ )
+ ),
array(
'http://id:key@example.org:123/path?foo=bar#baz',
array(