Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988107
WfParseUrlTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
711 B
Referenced Files
None
Subscribers
None
WfParseUrlTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment