1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 03:41:29 +02:00

Rename TestCase to MonologTestCase (#1953)

This commit is contained in:
Markus Staab
2025-03-16 13:30:20 +01:00
committed by GitHub
parent 9d6bcfc94d
commit 7ca003e6ae
90 changed files with 197 additions and 262 deletions

View File

@@ -12,13 +12,12 @@
namespace Monolog\Handler;
use InvalidArgumentException;
use Monolog\Test\TestCase;
use PHPUnit\Framework\Attributes\DataProvider;
/**
* @covers Monolog\Handler\RotatingFileHandler
*/
class RotatingFileHandlerTest extends TestCase
class RotatingFileHandlerTest extends \Monolog\Test\MonologTestCase
{
private array|null $lastError = null;
@@ -84,15 +83,15 @@ class RotatingFileHandlerTest extends TestCase
{
if (empty($this->lastError)) {
$this->fail(
sprintf(
\sprintf(
'Failed asserting that error with code `%d` and message `%s` was triggered',
$code,
$message
)
);
}
$this->assertEquals($code, $this->lastError['code'], sprintf('Expected an error with code %d to be triggered, got `%s` instead', $code, $this->lastError['code']));
$this->assertEquals($message, $this->lastError['message'], sprintf('Expected an error with message `%d` to be triggered, got `%s` instead', $message, $this->lastError['message']));
$this->assertEquals($code, $this->lastError['code'], \sprintf('Expected an error with code %d to be triggered, got `%s` instead', $code, $this->lastError['code']));
$this->assertEquals($message, $this->lastError['message'], \sprintf('Expected an error with message `%d` to be triggered, got `%s` instead', $message, $this->lastError['message']));
}
public function testRotationCreatesNewFile()