mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Create new LoggerFactory
This commit is contained in:
parent
275b383be7
commit
9bcb470caa
2 changed files with 48 additions and 0 deletions
24
tests/Unit/Core/Logger/Factory/LoggerFactoryTest.php
Normal file
24
tests/Unit/Core/Logger/Factory/LoggerFactoryTest.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
// Copyright (C) 2010-2024, the Friendica project
|
||||
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Friendica\Test\Unit\Core\Logger\Factory;
|
||||
|
||||
use Friendica\Core\Logger\Factory\LoggerFactory;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class LoggerFactoryTest extends TestCase
|
||||
{
|
||||
public function testLoggerFactoryCreateReturnsPsrLogger(): void
|
||||
{
|
||||
$factory = new LoggerFactory();
|
||||
|
||||
$this->assertInstanceOf(LoggerInterface::class, $factory->create());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue