mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 23:24:02 +02:00
Move expectException before the line where exception is thrown
This commit is contained in:
@@ -142,13 +142,13 @@ class RegistryTest extends \PHPUnit\Framework\TestCase
|
||||
*/
|
||||
public function testFailsOnUnspecifiedReplacement()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
|
||||
$log1 = new Logger('test1');
|
||||
$log2 = new Logger('test2');
|
||||
|
||||
Registry::addLogger($log1, 'log');
|
||||
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
|
||||
Registry::addLogger($log2, 'log');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user