Skip to content

Commit dcf939d

Browse files
ISSUE-209: Added @Covers and @uses annotation to unit-tests
1 parent ed8a5c0 commit dcf939d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
bootstrap="vendor/autoload.php"
55
colors="true"
66
executionOrder="depends,defects"
7-
forceCoversAnnotation="false"
7+
forceCoversAnnotation="true"
88
beStrictAboutCoversAnnotation="true"
99
beStrictAboutOutputDuringTests="true"
1010
beStrictAboutTodoAnnotatedTests="true"

tests/BooleanToValueTransformerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
use PHPUnit\Framework\TestCase;
2727
use Symfony\Component\Form\Exception\TransformationFailedException;
2828

29+
/**
30+
* @covers \DarkWebDesign\SymfonyAddonTransformers\BooleanToValueTransformer
31+
*/
2932
class BooleanToValueTransformerTest extends TestCase
3033
{
3134
/**

tests/EntityToIdentifierTransformerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
use Symfony\Component\Form\Exception\InvalidArgumentException;
3535
use Symfony\Component\Form\Exception\TransformationFailedException;
3636

37+
/**
38+
* @covers \DarkWebDesign\SymfonyAddonTransformers\EntityToIdentifierTransformer
39+
*/
3740
class EntityToIdentifierTransformerTest extends TestCase
3841
{
3942
/** @var \DarkWebDesign\SymfonyAddonTransformers\Tests\Models\City */

0 commit comments

Comments
 (0)