mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-20 11:51:32 +02:00
Fix phpunit deprecations
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Monolog\Handler;
|
||||
|
||||
use Monolog\Test\TestCase;
|
||||
use Monolog\Level;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
|
||||
class StreamHandlerTest extends TestCase
|
||||
{
|
||||
@@ -127,9 +128,9 @@ class StreamHandlerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider invalidArgumentProvider
|
||||
* @covers Monolog\Handler\StreamHandler::__construct
|
||||
*/
|
||||
#[DataProvider('invalidArgumentProvider')]
|
||||
public function testWriteInvalidArgument($invalidArgument)
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
@@ -207,8 +208,8 @@ STRING;
|
||||
/**
|
||||
* @covers Monolog\Handler\StreamHandler::__construct
|
||||
* @covers Monolog\Handler\StreamHandler::write
|
||||
* @dataProvider provideNonExistingAndNotCreatablePath
|
||||
*/
|
||||
#[DataProvider('provideNonExistingAndNotCreatablePath')]
|
||||
public function testWriteNonExistingAndNotCreatablePath($nonExistingAndNotCreatablePath)
|
||||
{
|
||||
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||
@@ -259,9 +260,7 @@ STRING;
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideMemoryValues
|
||||
*/
|
||||
#[DataProvider('provideMemoryValues')]
|
||||
public function testPreventOOMError($phpMemory, $expectedChunkSize): void
|
||||
{
|
||||
$previousValue = ini_set('memory_limit', $phpMemory);
|
||||
|
Reference in New Issue
Block a user