Skip to content

Commit 1c0372a

Browse files
Add code coverage metadata
1 parent d8587fa commit 1c0372a

18 files changed

+74
-0
lines changed

tests/unit/Framework/MockObject/Creation/CreateConfiguredMockTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\Group;
1314
use PHPUnit\Framework\Attributes\Medium;
1415
use PHPUnit\Framework\Attributes\TestDox;
@@ -20,6 +21,7 @@
2021
#[Group('test-doubles/mock-object')]
2122
#[Medium]
2223
#[TestDox('createConfiguredMock()')]
24+
#[CoversMethod(TestCase::class, 'createConfiguredMock')]
2325
final class CreateConfiguredMockTest extends TestCase
2426
{
2527
public function testCreatesMockObjectForInterfaceOrExtendableClassWithReturnValueConfigurationForMultipleMethods(): void

tests/unit/Framework/MockObject/Creation/CreateConfiguredStubTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\Group;
1314
use PHPUnit\Framework\Attributes\Medium;
1415
use PHPUnit\Framework\Attributes\TestDox;
@@ -20,6 +21,7 @@
2021
#[Group('test-doubles/test-stub')]
2122
#[Medium]
2223
#[TestDox('createConfiguredStub()')]
24+
#[CoversMethod(TestCase::class, 'createConfiguredStub')]
2325
final class CreateConfiguredStubTest extends TestCase
2426
{
2527
public function testCreatesTestStubForInterfaceOrExtendableClassWithReturnValueConfigurationForMultipleMethods(): void

tests/unit/Framework/MockObject/Creation/CreateMockForIntersectionOfInterfacesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\Group;
1314
use PHPUnit\Framework\Attributes\Medium;
1415
use PHPUnit\Framework\Attributes\TestDox;
@@ -24,6 +25,7 @@
2425
#[Group('test-doubles/mock-object')]
2526
#[Medium]
2627
#[TestDox('createMockForIntersectionOfInterfaces()')]
28+
#[CoversMethod(TestCase::class, 'createMockForIntersectionOfInterfaces')]
2729
final class CreateMockForIntersectionOfInterfacesTest extends TestCase
2830
{
2931
public function testCreatesMockObjectForIntersectionOfInterfaces(): void

tests/unit/Framework/MockObject/Creation/CreateMockForIntersectionOfInterfacesWithDisabledReturnValueGenerationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\DisableReturnValueGenerationForTestDoubles;
1314
use PHPUnit\Framework\Attributes\Group;
1415
use PHPUnit\Framework\Attributes\Medium;
@@ -23,6 +24,7 @@
2324
#[Medium]
2425
#[TestDox('createMockForIntersectionOfInterfaces()')]
2526
#[DisableReturnValueGenerationForTestDoubles]
27+
#[CoversMethod(TestCase::class, 'createMockForIntersectionOfInterfaces')]
2628
final class CreateMockForIntersectionOfInterfacesWithDisabledReturnValueGenerationTest extends TestCase
2729
{
2830
public function testReturnValueGenerationCanBeDisabledWithAttribute(): void

tests/unit/Framework/MockObject/Creation/CreateMockTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\Group;
1314
use PHPUnit\Framework\Attributes\Medium;
1415
use PHPUnit\Framework\Attributes\TestDox;
@@ -28,6 +29,7 @@
2829
#[Group('test-doubles/mock-object')]
2930
#[Medium]
3031
#[TestDox('createMock()')]
32+
#[CoversMethod(TestCase::class, 'createMock')]
3133
final class CreateMockTest extends TestCase
3234
{
3335
public function testCreatesMockObjectForInterface(): void

tests/unit/Framework/MockObject/Creation/CreateMockWithDisabledReturnValueGenerationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\DisableReturnValueGenerationForTestDoubles;
1314
use PHPUnit\Framework\Attributes\Group;
1415
use PHPUnit\Framework\Attributes\Medium;
@@ -22,6 +23,7 @@
2223
#[Medium]
2324
#[TestDox('createMock()')]
2425
#[DisableReturnValueGenerationForTestDoubles]
26+
#[CoversMethod(TestCase::class, 'createMock')]
2527
final class CreateMockWithDisabledReturnValueGenerationTest extends TestCase
2628
{
2729
public function testReturnValueGenerationCanBeDisabledWithAttribute(): void

tests/unit/Framework/MockObject/Creation/CreatePartialMockTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\Group;
1314
use PHPUnit\Framework\Attributes\Medium;
1415
use PHPUnit\Framework\Attributes\TestDox;
@@ -21,6 +22,7 @@
2122
#[Group('test-doubles/mock-object')]
2223
#[Medium]
2324
#[TestDox('createPartialMock()')]
25+
#[CoversMethod(TestCase::class, 'createPartialMock')]
2426
final class CreatePartialMockTest extends TestCase
2527
{
2628
public function testCreatesPartialMockObjectForExtendableClass(): void

tests/unit/Framework/MockObject/Creation/CreatePartialMockWithDisabledReturnValueGenerationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\DisableReturnValueGenerationForTestDoubles;
1314
use PHPUnit\Framework\Attributes\Group;
1415
use PHPUnit\Framework\Attributes\Medium;
@@ -22,6 +23,7 @@
2223
#[Medium]
2324
#[TestDox('createPartialMock()')]
2425
#[DisableReturnValueGenerationForTestDoubles]
26+
#[CoversMethod(TestCase::class, 'createPartialMock')]
2527
final class CreatePartialMockWithDisabledReturnValueGenerationTest extends TestCase
2628
{
2729
public function testReturnValueGenerationCanBeDisabledWithAttribute(): void

tests/unit/Framework/MockObject/Creation/CreateStubForIntersectionOfInterfacesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\Group;
1314
use PHPUnit\Framework\Attributes\Medium;
1415
use PHPUnit\Framework\Attributes\TestDox;
@@ -24,6 +25,7 @@
2425
#[Group('test-doubles/test-stub')]
2526
#[Medium]
2627
#[TestDox('createStubForIntersectionOfInterfaces()')]
28+
#[CoversMethod(TestCase::class, 'createStubForIntersectionOfInterfaces')]
2729
final class CreateStubForIntersectionOfInterfacesTest extends TestCase
2830
{
2931
public function testCreatesTestStubForIntersectionOfInterfaces(): void

tests/unit/Framework/MockObject/Creation/CreateStubForIntersectionOfInterfacesWithDisabledReturnValueGenerationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12+
use PHPUnit\Framework\Attributes\CoversMethod;
1213
use PHPUnit\Framework\Attributes\DisableReturnValueGenerationForTestDoubles;
1314
use PHPUnit\Framework\Attributes\Group;
1415
use PHPUnit\Framework\Attributes\Medium;
@@ -23,6 +24,7 @@
2324
#[Medium]
2425
#[TestDox('createStubForIntersectionOfInterfaces()')]
2526
#[DisableReturnValueGenerationForTestDoubles]
27+
#[CoversMethod(TestCase::class, 'createStubForIntersectionOfInterfaces')]
2628
final class CreateStubForIntersectionOfInterfacesWithDisabledReturnValueGenerationTest extends TestCase
2729
{
2830
public function testReturnValueGenerationCanBeDisabledWithAttribute(): void

0 commit comments

Comments
 (0)