aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/changes/EnhancedChangesListTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/changes/EnhancedChangesListTest.php')
-rw-r--r--tests/phpunit/includes/changes/EnhancedChangesListTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/changes/EnhancedChangesListTest.php b/tests/phpunit/includes/changes/EnhancedChangesListTest.php
index f2256ca8f351..3a1813f4fb9b 100644
--- a/tests/phpunit/includes/changes/EnhancedChangesListTest.php
+++ b/tests/phpunit/includes/changes/EnhancedChangesListTest.php
@@ -116,10 +116,10 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
$html = $enhancedChangesList->endRecentChangesList();
- $this->assertRegExp( '/Hello world prefix/', $html );
+ $this->assertMatchesRegularExpression( '/Hello world prefix/', $html );
// Test EnhancedChangesListModifyLineData hook was run
- $this->assertRegExp( '/This is a minor edit/', $html );
+ $this->assertMatchesRegularExpression( '/This is a minor edit/', $html );
// Two separate lines
$enhancedChangesList->beginRecentChangesList();
@@ -132,7 +132,7 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
$html = $enhancedChangesList->endRecentChangesList();
// Test EnhancedChangesListModifyBlockLineData hook was run
- $this->assertRegExp( '/This edit was performed by a bot/', $html );
+ $this->assertMatchesRegularExpression( '/This edit was performed by a bot/', $html );
preg_match_all( '/Hello world prefix/', $html, $matches );
$this->assertCount( 2, $matches[0] );
@@ -163,7 +163,7 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
$enhancedChangesList->recentChangesLine( $recentChange, false );
$html = $enhancedChangesList->endRecentChangesList();
- $this->assertRegExp(
+ $this->assertMatchesRegularExpression(
'/data-mw-revid="5" data-mw-ts="20131103092153" class="[^"]*mw-enhanced-rc[^"]*"/',
$html
);