mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix warnings on higher phpunit versions
This commit is contained in:
parent
bb96b04f4a
commit
1593b67230
29 changed files with 854 additions and 143 deletions
|
@ -120,16 +120,13 @@ class ClassMapGeneratorTest extends TestCase
|
|||
), ClassMapGenerator::createMap($finder));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \RuntimeException
|
||||
* @expectedExceptionMessage does not exist
|
||||
*/
|
||||
public function testFindClassesThrowsWhenFileDoesNotExist()
|
||||
{
|
||||
$r = new \ReflectionClass('Composer\\Autoload\\ClassMapGenerator');
|
||||
$find = $r->getMethod('findClasses');
|
||||
$find->setAccessible(true);
|
||||
|
||||
$this->setExpectedException('RuntimeException', 'does not exist');
|
||||
$find->invoke(null, __DIR__ . '/no-file');
|
||||
}
|
||||
|
||||
|
@ -213,12 +210,9 @@ class ClassMapGeneratorTest extends TestCase
|
|||
$fs->removeDirectory($tempDir);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \RuntimeException
|
||||
* @expectedExceptionMessage Could not scan for classes inside
|
||||
*/
|
||||
public function testCreateMapThrowsWhenDirectoryDoesNotExist()
|
||||
{
|
||||
$this->setExpectedException('RuntimeException', 'Could not scan for classes inside');
|
||||
ClassMapGenerator::createMap(__DIR__ . '/no-file.no-foler');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue