Page MenuHomeWickedGov Phorge

WfParseUrlTest.php
No OneTemporary

Size
711 B
Referenced Files
None
Subscribers
None

WfParseUrlTest.php

<?php
/**
* Copyright © 2013 Alexandre Emsenhuber
*
* @license GPL-2.0-or-later
* @file
*/
use MediaWiki\MainConfigNames;
/**
* @group GlobalFunctions
* @covers ::wfParseUrl
*/
class WfParseUrlTest extends MediaWikiIntegrationTestCase {
protected function setUp(): void {
parent::setUp();
$this->overrideConfigValue( MainConfigNames::UrlProtocols, [
'//',
'http://',
'https://',
'file://',
'mailto:',
'news:',
] );
}
/**
* Same tests as the UrlUtils method
* @dataProvider UrlUtilsProviders::provideParse
*/
public function testWfParseUrl( $url, $parts ) {
$this->hideDeprecated( 'wfParseUrl' );
$this->assertEquals(
$parts,
wfParseUrl( $url )
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 00:41 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/f6/da04ccac18ff8a67edd9840ecb5c
Default Alt Text
WfParseUrlTest.php (711 B)

Event Timeline