Skip to content

Commit 324b8a3

Browse files
committed
test(conformance): add #[CoversClass] and #[Test] to ImmutableStateTest; fix README stats (19→20 files)
1 parent 9a00351 commit 324b8a3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ src/
228228

229229
| Metric | Value |
230230
|---|---|
231-
| PHP source files | 19 |
232-
| Source lines | ~720 |
231+
| PHP source files | 20 |
232+
| Source lines | ~810 |
233233
| Test files | 13 |
234234
| Test lines | ~700 |
235235
| External runtime dependencies | 1 (kariricode/property-inspector) |

tests/Conformance/ImmutableStateTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
namespace KaririCode\Serializer\Tests\Conformance;
66

77
use KaririCode\Serializer\Core\SerializationContextImpl;
8+
use PHPUnit\Framework\Attributes\CoversClass;
9+
use PHPUnit\Framework\Attributes\Test;
810
use PHPUnit\Framework\TestCase;
911

12+
#[CoversClass(SerializationContextImpl::class)]
1013
final class ImmutableStateTest extends TestCase
1114
{
15+
#[Test]
1216
public function testContextImmutability(): void
1317
{
1418
$ctx = SerializationContextImpl::create('json');
@@ -18,6 +22,7 @@ public function testContextImmutability(): void
1822
$this->assertSame('xml', $ctx2->getFormat());
1923
}
2024

25+
#[Test]
2126
public function testParametersImmutability(): void
2227
{
2328
$ctx = SerializationContextImpl::create();

0 commit comments

Comments
 (0)