mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-13 00:24:10 +02:00
Replace deprecated setExpectedException methods with expectException
This commit is contained in:
@@ -68,7 +68,7 @@ class RegistryTest extends \PHPUnit_Framework_TestCase
|
||||
Registry::addLogger(new Logger('test1'), 'log');
|
||||
Registry::clear();
|
||||
|
||||
$this->setExpectedException('\InvalidArgumentException');
|
||||
$this->expectException('\InvalidArgumentException');
|
||||
Registry::getInstance('log');
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class RegistryTest extends \PHPUnit_Framework_TestCase
|
||||
Registry::addLogger($loggerToAdd);
|
||||
Registry::removeLogger($remove);
|
||||
|
||||
$this->setExpectedException('\InvalidArgumentException');
|
||||
$this->expectException('\InvalidArgumentException');
|
||||
Registry::getInstance($loggerToAdd->getName());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user