Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4150929
SearchTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
469 B
Referenced Files
None
Subscribers
None
SearchTest.php
View Options
<?php
use
MediaWiki\Extension\ReplaceText\Search
;
/**
* @covers \MediaWiki\Extension\ReplaceText\Search
*/
class
SearchTest
extends
\MediaWikiUnitTestCase
{
public
function
testGetReplacedText
()
{
$text
=
'This is the line being tested'
;
$search
=
'line'
;
$replacement
=
'word'
;
$regex
=
false
;
$op
=
Search
::
getReplacedText
(
$text
,
$search
,
$replacement
,
$regex
);
$trueOp
=
'This is the word being tested'
;
$this
->
assertSame
(
$trueOp
,
$op
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 19:47 (6 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/e6/029acd3a433c4e9b11c1104ab8da
Default Alt Text
SearchTest.php (469 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment