mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 12:17:35 +02:00
Upgrade PHPUnit to v8
This commit is contained in:
@@ -93,10 +93,11 @@ class AbstractProcessingHandlerTest extends TestCase
|
||||
/**
|
||||
* @covers Monolog\Handler\ProcessableHandlerTrait::pushProcessor
|
||||
* @covers Monolog\Handler\ProcessableHandlerTrait::popProcessor
|
||||
* @expectedException LogicException
|
||||
*/
|
||||
public function testPushPopProcessor()
|
||||
{
|
||||
$this->expectException(\LogicException::class);
|
||||
|
||||
$logger = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler');
|
||||
$processor1 = new WebProcessor;
|
||||
$processor2 = new WebProcessor;
|
||||
@@ -111,10 +112,11 @@ class AbstractProcessingHandlerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers Monolog\Handler\ProcessableHandlerTrait::pushProcessor
|
||||
* @expectedException TypeError
|
||||
*/
|
||||
public function testPushProcessorWithNonCallable()
|
||||
{
|
||||
$this->expectException(\TypeError::class);
|
||||
|
||||
$handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler');
|
||||
|
||||
$handler->pushProcessor(new \stdClass());
|
||||
|
Reference in New Issue
Block a user