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

@ -432,13 +432,13 @@ class PluginInstallerTest extends TestCase
/**
* @dataProvider invalidImplementationClassNames
* @param callable $invalidImplementationClassNames
* @param string $expect
* @param class-string<\Throwable> $expect
*
* @return void
*/
public function testQueryingWithInvalidCapabilityClassNameThrows($invalidImplementationClassNames, $expect = 'UnexpectedValueException')
{
$this->setExpectedException($expect);
self::expectException($expect);
$capabilityApi = 'Composer\Plugin\Capability\Capability';