Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7486520
XmlTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
708 B
Referenced Files
None
Subscribers
None
XmlTest.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\Tests\Unit
;
use
MediaWiki\Xml\Xml
;
use
MediaWikiUnitTestCase
;
/**
* Split from \XmlTest integration tests
*
* @group Xml
* @covers \MediaWiki\Xml\Xml
*/
class
XmlTest
extends
MediaWikiUnitTestCase
{
public
function
testExpandAttributes
()
{
$this
->
assertNull
(
Xml
::
expandAttributes
(
null
),
'Converting a null list of attributes'
);
$this
->
assertSame
(
''
,
Xml
::
expandAttributes
(
[]
),
'Converting an empty list of attributes'
);
}
public
function
testEscapeTagsOnly
()
{
$this
->
assertEquals
(
'"><'
,
Xml
::
escapeTagsOnly
(
'"><'
),
'replace " > and < with their HTML entitites'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 15:29 (1 w, 10 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
24/ac/51e46211343336cbdd5dc9261e9d
Default Alt Text
XmlTest.php (708 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment