mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Remove setExpectedException wrapper
This commit is contained in:
parent
32dcb93f24
commit
6ed3aeb343
44 changed files with 98 additions and 101 deletions
|
@ -57,12 +57,12 @@ class RepositoryManagerTest extends TestCase
|
|||
*
|
||||
* @param string $type
|
||||
* @param array<string, mixed> $options
|
||||
* @param string|null $exception
|
||||
* @param class-string<\Throwable>|null $exception
|
||||
*/
|
||||
public function testRepoCreation($type, $options, $exception = null)
|
||||
{
|
||||
if ($exception) {
|
||||
$this->setExpectedException($exception);
|
||||
self::expectException($exception);
|
||||
}
|
||||
|
||||
$rm = new RepositoryManager(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue