Skip to content

Commit 966f818

Browse files
authored
feat: use phpunit covers attribute (#119)
1 parent 7043349 commit 966f818

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/Kafka/ConfigurationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
namespace SimPod\KafkaBundle\Tests\Kafka;
66

77
use Generator;
8+
use PHPUnit\Framework\Attributes\CoversClass;
89
use PHPUnit\Framework\Attributes\DataProvider;
910
use SimPod\KafkaBundle\Kafka\Configuration;
1011
use SimPod\KafkaBundle\Tests\KafkaTestCase;
1112

12-
/** @covers \SimPod\KafkaBundle\Kafka\Configuration */
13+
#[CoversClass(Configuration::class)]
1314
final class ConfigurationTest extends KafkaTestCase
1415
{
1516
#[DataProvider('providerConfiguration')]

tests/SimPodBundleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55
namespace SimPod\KafkaBundle\Tests;
66

7+
use PHPUnit\Framework\Attributes\CoversClass;
78
use PHPUnit\Framework\TestCase;
89
use SimPod\KafkaBundle\DependencyInjection\ConsumerCompilerPass;
910
use SimPod\KafkaBundle\SimPodKafkaBundle;
1011
use Symfony\Component\DependencyInjection\ContainerBuilder;
1112
use SimPod\KafkaBundle\Kafka\Clients\Consumer\NamedConsumer;
1213

13-
/** @covers \SimPod\KafkaBundle\SimPodKafkaBundle */
14+
#[CoversClass(SimPodKafkaBundle::class)]
1415
final class SimPodBundleTest extends TestCase
1516
{
1617
/** @var SimPodKafkaBundle */

0 commit comments

Comments
 (0)