mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +02:00
Fix phpunit deprecations
This commit is contained in:
@@ -15,6 +15,7 @@ use DateTimeZone;
|
||||
use Monolog\Handler\TestHandler;
|
||||
use Monolog\Formatter\LineFormatter;
|
||||
use Monolog\Processor\PsrLogMessageProcessor;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\InvalidArgumentException;
|
||||
@@ -63,9 +64,7 @@ class PsrLogCompatTest extends TestCase
|
||||
$this->assertInstanceOf(LoggerInterface::class, $this->getLogger());
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideLevelsAndMessages
|
||||
*/
|
||||
#[DataProvider('provideLevelsAndMessages')]
|
||||
public function testLogsAtAllLevels($level, $message)
|
||||
{
|
||||
$logger = $this->getLogger();
|
||||
@@ -170,7 +169,7 @@ class PsrLogCompatTest extends TestCase
|
||||
->getMock();
|
||||
|
||||
$mock->method('__toString')
|
||||
->will($this->returnValue($string));
|
||||
->willReturn($string);
|
||||
|
||||
return $mock;
|
||||
}
|
||||
|
Reference in New Issue
Block a user