Skip to content

Commit 70a1500

Browse files
ISSUE-209: Added @Covers and @uses annotation to unit-tests
1 parent 73a7b4d commit 70a1500

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-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/BirthdayTypeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
use DarkWebDesign\SymfonyAddonFormTypes\BirthdayType;
2626
use Symfony\Component\Form\Test\TypeTestCase;
2727

28+
/**
29+
* @covers \DarkWebDesign\SymfonyAddonFormTypes\BirthdayType
30+
*/
2831
class BirthdayTypeTest extends TypeTestCase
2932
{
3033
public function test(): void

tests/BooleanTypeTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
use DarkWebDesign\SymfonyAddonFormTypes\BooleanType;
2626
use Symfony\Component\Form\Test\TypeTestCase;
2727

28+
/**
29+
* @covers \DarkWebDesign\SymfonyAddonFormTypes\BooleanType
30+
*
31+
* @uses \DarkWebDesign\SymfonyAddonTransformers\BooleanToValueTransformer
32+
*/
2833
class BooleanTypeTest extends TypeTestCase
2934
{
3035
/**

tests/EntityTypeTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
use Symfony\Component\Form\PreloadedExtension;
3434
use Symfony\Component\Form\Test\TypeTestCase;
3535

36+
/**
37+
* @covers \DarkWebDesign\SymfonyAddonFormTypes\EntityType
38+
*
39+
* @uses \DarkWebDesign\SymfonyAddonTransformers\EntityToIdentifierTransformer
40+
*/
3641
class EntityTypeTest extends TypeTestCase
3742
{
3843
/** @var \DarkWebDesign\SymfonyAddonFormTypes\Tests\Models\City */

tests/UnstructuredTypeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
use DarkWebDesign\SymfonyAddonFormTypes\UnstructuredType;
2626
use Symfony\Component\Form\Test\TypeTestCase;
2727

28+
/**
29+
* @covers \DarkWebDesign\SymfonyAddonFormTypes\UnstructuredType
30+
*/
2831
class UnstructuredTypeTest extends TypeTestCase
2932
{
3033
public function testArray(): void

0 commit comments

Comments
 (0)