From a1f9baa11813d105729378be4650155ca5d07669 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 13 Apr 2022 16:42:12 +0200 Subject: [PATCH] Fix 5.3/5.4 builds --- tests/Composer/Test/Repository/Vcs/GitDriverTest.php | 2 +- tests/Composer/Test/Repository/Vcs/HgDriverTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Repository/Vcs/GitDriverTest.php b/tests/Composer/Test/Repository/Vcs/GitDriverTest.php index c8cfdab0a..30041c0dd 100644 --- a/tests/Composer/Test/Repository/Vcs/GitDriverTest.php +++ b/tests/Composer/Test/Repository/Vcs/GitDriverTest.php @@ -56,7 +56,7 @@ GIT; public function testFileGetContentInvalidIdentifier() { - $this->expectException('\RuntimeException'); + $this->setExpectedException('\RuntimeException'); $process = new ProcessExecutorMock; $io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock(); diff --git a/tests/Composer/Test/Repository/Vcs/HgDriverTest.php b/tests/Composer/Test/Repository/Vcs/HgDriverTest.php index 356a28c48..e4784d92b 100644 --- a/tests/Composer/Test/Repository/Vcs/HgDriverTest.php +++ b/tests/Composer/Test/Repository/Vcs/HgDriverTest.php @@ -103,7 +103,7 @@ HG_BOOKMARKS; public function testFileGetContentInvalidIdentifier() { - $this->expectException('\RuntimeException'); + $this->setExpectedException('\RuntimeException'); $process = new ProcessExecutorMock; $driver = new HgDriver(array('url' => 'https://example.org/acme.git'), $this->io, $this->config, $this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock(), $process);