mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
LoggerFactory returns same object
This commit is contained in:
parent
9bcb470caa
commit
4a8533aa11
2 changed files with 14 additions and 1 deletions
|
@ -21,4 +21,11 @@ class LoggerFactoryTest extends TestCase
|
|||
|
||||
$this->assertInstanceOf(LoggerInterface::class, $factory->create());
|
||||
}
|
||||
|
||||
public function testLoggerFactoryCreateReturnsSameObject(): void
|
||||
{
|
||||
$factory = new LoggerFactory();
|
||||
|
||||
$this->assertSame($factory->create(), $factory->create());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue