Rename AbstractLoggerTest to LoggerTestCase

This commit is contained in:
Art4 2024-12-15 21:28:34 +00:00
parent 75632a1490
commit b09fb1047f
5 changed files with 8 additions and 5 deletions

View file

@ -5,7 +5,7 @@
// //
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Test\src\Core\Logger; namespace Friendica\Test;
trait LoggerDataTrait trait LoggerDataTrait
{ {

View file

@ -5,7 +5,7 @@
// //
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Test\src\Core\Logger; namespace Friendica\Test;
use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\Logger\Util\Introspection; use Friendica\Core\Logger\Util\Introspection;
@ -14,7 +14,7 @@ use Mockery\MockInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
abstract class AbstractLoggerTest extends MockedTestCase abstract class LoggerTestCase extends MockedTestCase
{ {
use LoggerDataTrait; use LoggerDataTrait;

View file

@ -8,6 +8,7 @@
namespace Friendica\Test\src\Core\Logger; namespace Friendica\Test\src\Core\Logger;
use Friendica\Core\Logger\Type\ProfilerLogger; use Friendica\Core\Logger\Type\ProfilerLogger;
use Friendica\Test\LoggerDataTrait;
use Friendica\Test\MockedTestCase; use Friendica\Test\MockedTestCase;
use Friendica\Util\Profiler; use Friendica\Util\Profiler;
use Mockery\MockInterface; use Mockery\MockInterface;

View file

@ -9,13 +9,14 @@ namespace Friendica\Test\src\Core\Logger;
use Friendica\Core\Logger\Exception\LoggerArgumentException; use Friendica\Core\Logger\Exception\LoggerArgumentException;
use Friendica\Core\Logger\Exception\LogLevelException; use Friendica\Core\Logger\Exception\LogLevelException;
use Friendica\Test\LoggerTestCase;
use Friendica\Test\Util\VFSTrait; use Friendica\Test\Util\VFSTrait;
use Friendica\Core\Logger\Type\StreamLogger; use Friendica\Core\Logger\Type\StreamLogger;
use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile; use org\bovigo\vfs\vfsStreamFile;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
class StreamLoggerTest extends AbstractLoggerTest class StreamLoggerTest extends LoggerTestCase
{ {
use VFSTrait; use VFSTrait;

View file

@ -9,9 +9,10 @@ namespace Friendica\Test\src\Core\Logger;
use Friendica\Core\Logger\Exception\LogLevelException; use Friendica\Core\Logger\Exception\LogLevelException;
use Friendica\Core\Logger\Type\SyslogLogger; use Friendica\Core\Logger\Type\SyslogLogger;
use Friendica\Test\LoggerTestCase;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
class SyslogLoggerTest extends AbstractLoggerTest class SyslogLoggerTest extends LoggerTestCase
{ {
/** /**
* @var SyslogLoggerWrapper * @var SyslogLoggerWrapper