1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-12 08:04:02 +02:00

Merge branch '2.x'

This commit is contained in:
Jordi Boggiano
2023-02-06 14:46:10 +01:00
4 changed files with 54 additions and 0 deletions

View File

@@ -699,6 +699,16 @@ class LoggerTest extends TestCase
$logger->info('test');
}
public function testSerializable()
{
$logger = new Logger(__METHOD__);
$copy = unserialize(serialize($logger));
self::assertInstanceOf(Logger::class, $copy);
self::assertSame($logger->getName(), $copy->getName());
self::assertSame($logger->getTimezone()->getName(), $copy->getTimezone()->getName());
self::assertSame($logger->getHandlers(), $copy->getHandlers());
}
public function testReset()
{
$logger = new Logger('app');