mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-21 20:35:17 +02:00
Fix phpunit deprecations
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
namespace Monolog\Processor;
|
||||
|
||||
use Monolog\Test\TestCase;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
|
||||
class ClosureContextProcessorTest extends TestCase
|
||||
{
|
||||
@@ -24,9 +25,7 @@ class ClosureContextProcessorTest extends TestCase
|
||||
$this->assertSame($context, $record->context);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getContexts
|
||||
*/
|
||||
#[DataProvider('getContexts')]
|
||||
public function testSkip(array $context)
|
||||
{
|
||||
$processor = new ClosureContextProcessor();
|
||||
|
@@ -13,12 +13,11 @@ namespace Monolog\Processor;
|
||||
|
||||
use Monolog\Level;
|
||||
use Monolog\Test\TestCase;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
|
||||
class PsrLogMessageProcessorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider getPairs
|
||||
*/
|
||||
#[DataProvider('getPairs')]
|
||||
public function testReplacement($val, $expected)
|
||||
{
|
||||
$proc = new PsrLogMessageProcessor;
|
||||
|
Reference in New Issue
Block a user