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
|
@ -146,7 +146,8 @@ class ClassMapGeneratorTest extends TestCase
|
|||
$find = $r->getMethod('findClasses');
|
||||
$find->setAccessible(true);
|
||||
|
||||
$this->setExpectedException('RuntimeException', 'does not exist');
|
||||
self::expectException('RuntimeException');
|
||||
self::expectExceptionMessage('does not exist');
|
||||
$find->invoke(null, __DIR__ . '/no-file');
|
||||
}
|
||||
|
||||
|
@ -232,7 +233,8 @@ class ClassMapGeneratorTest extends TestCase
|
|||
|
||||
public function testCreateMapThrowsWhenDirectoryDoesNotExist()
|
||||
{
|
||||
$this->setExpectedException('RuntimeException', 'Could not scan for classes inside');
|
||||
self::expectException('RuntimeException');
|
||||
self::expectExceptionMessage('Could not scan for classes inside');
|
||||
ClassMapGenerator::createMap(__DIR__ . '/no-file.no-foler');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue