From 8545ce131a2892475525b1df9704967ca468a006 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sun, 6 Oct 2019 11:52:39 +0200 Subject: Kill the remaining usages of PHPUnit4And6Compat methods Bug: T192167 Change-Id: I1ea19e9b53683b7d32ff9836990ee73ab3e11104 --- tests/phpunit/includes/diff/TextSlotDiffRendererTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/phpunit/includes/diff/TextSlotDiffRendererTest.php') 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(); -- cgit v1.2.3