Debian Codegraph @

extensions/ReplaceText/tests/phpunit/unit/SearchTest.php

raw symbols SCIP
1 <?php
2
3 use MediaWiki\Extension\ReplaceText\Search;
4
5 /**
6 * @covers \MediaWiki\Extension\ReplaceText\Search
7 */
8 class SearchTest extends \MediaWikiUnitTestCase {
9
10 public function testGetReplacedText() {
11 $text = 'This is the line being tested';
12 $search = 'line';
13 $replacement = 'word';
14 $regex = false;
15 $op = Search::getReplacedText( $text, $search, $replacement, $regex );
16 $trueOp = 'This is the word being tested';
17 $this->assertSame( $trueOp, $op );
18 }
19 }