1
0
Fork 0

Fix 5.3/5.4 builds

pull/10729/head
Jordi Boggiano 2022-04-13 16:42:12 +02:00
parent 2ba8758b30
commit a1f9baa118
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ GIT;
public function testFileGetContentInvalidIdentifier() public function testFileGetContentInvalidIdentifier()
{ {
$this->expectException('\RuntimeException'); $this->setExpectedException('\RuntimeException');
$process = new ProcessExecutorMock; $process = new ProcessExecutorMock;
$io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock(); $io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();

View File

@ -103,7 +103,7 @@ HG_BOOKMARKS;
public function testFileGetContentInvalidIdentifier() public function testFileGetContentInvalidIdentifier()
{ {
$this->expectException('\RuntimeException'); $this->setExpectedException('\RuntimeException');
$process = new ProcessExecutorMock; $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); $driver = new HgDriver(array('url' => 'https://example.org/acme.git'), $this->io, $this->config, $this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock(), $process);