Skip to content

Commit b3b44b4

Browse files
Improve code coverage metadata
1 parent 8c8dbdb commit b3b44b4

8 files changed

+20
-6
lines changed

tests/ChunkTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
namespace SebastianBergmann\Diff;
1111

1212
use PHPUnit\Framework\Attributes\CoversClass;
13+
use PHPUnit\Framework\Attributes\Small;
1314
use PHPUnit\Framework\Attributes\UsesClass;
1415
use PHPUnit\Framework\TestCase;
1516

1617
#[CoversClass(Chunk::class)]
1718
#[UsesClass(Line::class)]
19+
#[Small]
1820
final class ChunkTest extends TestCase
1921
{
2022
private Chunk $chunk;

tests/DiffTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
namespace SebastianBergmann\Diff;
1111

1212
use PHPUnit\Framework\Attributes\CoversClass;
13+
use PHPUnit\Framework\Attributes\Small;
1314
use PHPUnit\Framework\Attributes\UsesClass;
1415
use PHPUnit\Framework\TestCase;
1516

1617
#[CoversClass(Diff::class)]
1718
#[UsesClass(Chunk::class)]
19+
#[Small]
1820
final class DiffTest extends TestCase
1921
{
2022
public function testGettersAfterConstructionWithDefault(): void

tests/DifferTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use PHPUnit\Framework\Attributes\CoversClass;
1313
use PHPUnit\Framework\Attributes\DataProvider;
14+
use PHPUnit\Framework\Attributes\Small;
1415
use PHPUnit\Framework\Attributes\UsesClass;
1516
use PHPUnit\Framework\TestCase;
1617
use ReflectionObject;
@@ -22,6 +23,7 @@
2223
#[UsesClass(MemoryEfficientLongestCommonSubsequenceCalculator::class)]
2324
#[UsesClass(TimeEfficientLongestCommonSubsequenceCalculator::class)]
2425
#[UsesClass(AbstractChunkOutputBuilder::class)]
26+
#[Small]
2527
final class DifferTest extends TestCase
2628
{
2729
private Differ $differ;

tests/Exception/ConfigurationExceptionTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
namespace SebastianBergmann\Diff;
1111

1212
use BadMethodCallException;
13+
use PHPUnit\Framework\Attributes\CoversClass;
14+
use PHPUnit\Framework\Attributes\Small;
1315
use PHPUnit\Framework\TestCase;
1416
use SplFileInfo;
1517

16-
/**
17-
* @covers \SebastianBergmann\Diff\ConfigurationException
18-
*/
18+
#[CoversClass(ConfigurationException::class)]
19+
#[Small]
1920
final class ConfigurationExceptionTest extends TestCase
2021
{
2122
public function testConstructWithDefaults(): void

tests/Exception/InvalidArgumentExceptionTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
namespace SebastianBergmann\Diff;
1111

1212
use LogicException;
13+
use PHPUnit\Framework\Attributes\CoversClass;
14+
use PHPUnit\Framework\Attributes\Small;
1315
use PHPUnit\Framework\TestCase;
1416

15-
/**
16-
* @covers \SebastianBergmann\Diff\InvalidArgumentException
17-
*/
17+
#[CoversClass(InvalidArgumentException::class)]
18+
#[Small]
1819
final class InvalidArgumentExceptionTest extends TestCase
1920
{
2021
public function testInvalidArgumentException(): void

tests/MemoryEfficientImplementationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
namespace SebastianBergmann\Diff;
1111

1212
use PHPUnit\Framework\Attributes\CoversClass;
13+
use PHPUnit\Framework\Attributes\Small;
1314

1415
#[CoversClass(MemoryEfficientLongestCommonSubsequenceCalculator::class)]
16+
#[Small]
1517
final class MemoryEfficientImplementationTest extends LongestCommonSubsequenceTestCase
1618
{
1719
protected function createImplementation(): LongestCommonSubsequenceCalculator

tests/ParserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use function unserialize;
1313
use PHPUnit\Framework\Attributes\CoversClass;
1414
use PHPUnit\Framework\Attributes\DataProvider;
15+
use PHPUnit\Framework\Attributes\Small;
1516
use PHPUnit\Framework\Attributes\UsesClass;
1617
use PHPUnit\Framework\TestCase;
1718
use SebastianBergmann\Diff\Utils\FileUtils;
@@ -20,6 +21,7 @@
2021
#[UsesClass(Chunk::class)]
2122
#[UsesClass(Diff::class)]
2223
#[UsesClass(Line::class)]
24+
#[Small]
2325
final class ParserTest extends TestCase
2426
{
2527
private Parser $parser;

tests/TimeEfficientImplementationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
namespace SebastianBergmann\Diff;
1111

1212
use PHPUnit\Framework\Attributes\CoversClass;
13+
use PHPUnit\Framework\Attributes\Small;
1314

1415
#[CoversClass(TimeEfficientLongestCommonSubsequenceCalculator::class)]
16+
#[Small]
1517
final class TimeEfficientImplementationTest extends LongestCommonSubsequenceTestCase
1618
{
1719
protected function createImplementation(): LongestCommonSubsequenceCalculator

0 commit comments

Comments
 (0)