diff --git a/tests/phpunit/includes/HooksTest.php b/tests/phpunit/includes/HooksTest.php index f8d5e4f..e675b72 100644 --- a/tests/phpunit/includes/HooksTest.php +++ b/tests/phpunit/includes/HooksTest.php @@ -76,13 +76,13 @@ class HooksTest extends MediaWikiLangTestCase { } if ( $expectedLink === false ) { - $this->assertNotRegExp( + $this->assertDoesNotMatchRegularExpression( '/]+href=[\'"]([^\'"]+)[\'"].+?>/', $data, 'More information link should not be present' ); } else { - $this->assertRegExp( + $this->assertMatchesRegularExpression( '/]+href=[\'"]' . preg_quote( $expectedLink, '/' ) . '[\'"].+?>/', $data, 'More information link should be present and match the expectation'