1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Remove setExpectedException wrapper

This commit is contained in:
Jordi Boggiano 2021-12-09 20:55:26 +01:00
parent 32dcb93f24
commit 6ed3aeb343
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
44 changed files with 98 additions and 101 deletions

View file

@ -49,7 +49,8 @@ class SvnDriverTest extends TestCase
public function testWrongCredentialsInUrl()
{
$this->setExpectedException('RuntimeException', "Repository https://till:secret@corp.svn.local/repo could not be processed, wrong credentials provided (svn: OPTIONS of 'https://corp.svn.local/repo': authorization failed: Could not authenticate to server: rejected Basic challenge (https://corp.svn.local/))");
self::expectException('RuntimeException');
self::expectExceptionMessage("Repository https://till:secret@corp.svn.local/repo could not be processed, wrong credentials provided (svn: OPTIONS of 'https://corp.svn.local/repo': authorization failed: Could not authenticate to server: rejected Basic challenge (https://corp.svn.local/))");
$console = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
$httpDownloader = $this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock();