aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2019-10-06 11:52:39 +0200
committerDaimona Eaytoy <daimona.wiki@gmail.com>2019-10-06 10:12:54 +0000
commit8545ce131a2892475525b1df9704967ca468a006 (patch)
tree4a88257e5ec7d3c0b09053631fea3a0471faeec1 /tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
parent85d7ca39856b4520d8cb765f50911847c8184a91 (diff)
downloadmediawikicore-8545ce131a2892475525b1df9704967ca468a006.tar.gz
mediawikicore-8545ce131a2892475525b1df9704967ca468a006.zip
Kill the remaining usages of PHPUnit4And6Compat methods
Bug: T192167 Change-Id: I1ea19e9b53683b7d32ff9836990ee73ab3e11104
Diffstat (limited to 'tests/phpunit/includes/diff/TextSlotDiffRendererTest.php')
-rw-r--r--tests/phpunit/includes/diff/TextSlotDiffRendererTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php b/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
index 3eb12011d283..f303d74a1572 100644
--- a/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
+++ b/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
@@ -26,7 +26,8 @@ class TextSlotDiffRendererTest extends MediaWikiTestCase {
$newContent = $newContentArgs ? self::makeContent( ...$newContentArgs ) : null;
if ( $expectedResult instanceof Exception ) {
- $this->setExpectedException( get_class( $expectedResult ), $expectedResult->getMessage() );
+ $this->expectException( get_class( $expectedResult ) );
+ $this->expectExceptionMessage( $expectedResult->getMessage() );
}
$slotDiffRenderer = $this->getTextSlotDiffRenderer();