Skip to content

Commit 39235ab

Browse files
committed
Refactor: Add 'final' to classes in the 'tests' folder and other minor improvements
1 parent a21fbe3 commit 39235ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+60
-60
lines changed

tests/Decorator/AsyncLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PHPUnit\Framework\MockObject\MockObject;
1111
use PHPUnit\Framework\TestCase;
1212

13-
class AsyncLoggerTest extends TestCase
13+
final class AsyncLoggerTest extends TestCase
1414
{
1515
private AsyncLogger $asyncLogger;
1616
private Logger|MockObject $logger;

tests/Decorator/BaseLoggerDecoratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PHPUnit\Framework\MockObject\MockObject;
1111
use PHPUnit\Framework\TestCase;
1212

13-
class BaseLoggerDecoratorTest extends TestCase
13+
final class BaseLoggerDecoratorTest extends TestCase
1414
{
1515
private BaseLoggerDecorator $baseLoggerDecorator;
1616
private Logger|MockObject $logger;

tests/Decorator/ContextualLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PHPUnit\Framework\MockObject\MockObject;
1111
use PHPUnit\Framework\TestCase;
1212

13-
class ContextualLoggerTest extends TestCase
13+
final class ContextualLoggerTest extends TestCase
1414
{
1515
private ContextualLogger $contextualLogger;
1616
private Logger|MockObject $logger;

tests/Exception/LoggingExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use KaririCode\Logging\Exception\LoggingException;
88
use PHPUnit\Framework\TestCase;
99

10-
class LoggingExceptionTest extends TestCase
10+
final class LoggingExceptionTest extends TestCase
1111
{
1212
public function testExceptionMessage(): void
1313
{

tests/Formatter/AbstractFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use KaririCode\Logging\Formatter\AbstractFormatter;
99
use PHPUnit\Framework\TestCase;
1010

11-
class AbstractFormatterTest extends TestCase
11+
final class AbstractFormatterTest extends TestCase
1212
{
1313
public function testGetFormatter(): void
1414
{

tests/Formatter/ConsoleColorFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use KaririCode\Logging\LogLevel;
99
use PHPUnit\Framework\TestCase;
1010

11-
class ConsoleColorFormatterTest extends TestCase
11+
final class ConsoleColorFormatterTest extends TestCase
1212
{
1313
private ConsoleColorFormatter $formatter;
1414

tests/Formatter/ElasticFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use KaririCode\Logging\LogRecord;
1010
use PHPUnit\Framework\TestCase;
1111

12-
class ElasticFormatterTest extends TestCase
12+
final class ElasticFormatterTest extends TestCase
1313
{
1414
private ElasticFormatter $formatter;
1515

tests/Formatter/JsonFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use KaririCode\Logging\LogRecord;
1010
use PHPUnit\Framework\TestCase;
1111

12-
class JsonFormatterTest extends TestCase
12+
final class JsonFormatterTest extends TestCase
1313
{
1414
private JsonFormatter $jsonFormatter;
1515

tests/Formatter/LineFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use KaririCode\Logging\LogRecord;
1010
use PHPUnit\Framework\TestCase;
1111

12-
class LineFormatterTest extends TestCase
12+
final class LineFormatterTest extends TestCase
1313
{
1414
private LineFormatter $formatter;
1515

tests/Handler/AbstractHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
use KaririCode\Logging\LogRecord;
1313
use PHPUnit\Framework\TestCase;
1414

15-
class ConcreteHandler extends AbstractHandler
15+
final class ConcreteHandler extends AbstractHandler
1616
{
1717
public function handle(ImmutableValue $record): void
1818
{
1919
// Implementação de exemplo para o método abstrato
2020
}
2121
}
2222

23-
class AbstractHandlerTest extends TestCase
23+
final class AbstractHandlerTest extends TestCase
2424
{
2525
private ConcreteHandler $handler;
2626

0 commit comments

Comments
 (0)