Skip to content

Commit bfab44d

Browse files
Revert deprecation of includeUncoveredFiles configuration option
This reverts commit ee2a7c6.
1 parent 1a6b5df commit bfab44d

File tree

6 files changed

+4
-40
lines changed

6 files changed

+4
-40
lines changed

ChangeLog-11.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes of the PHPUnit 11.5 release series are documented in this fi
66

77
### Changed
88

9+
* [#5951](https://github.com/sebastianbergmann/phpunit/issues/5951): The `includeUncoveredFiles` configuration option is no longer deprecated
910
* [#6117](https://github.com/sebastianbergmann/phpunit/issues/6117): Include source location information for issues triggered during test in `--debug` output
1011
* [#6119](https://github.com/sebastianbergmann/phpunit/issues/6119): Improve message for errors that occur while parsing attributes
1112
* [#6120](https://github.com/sebastianbergmann/phpunit/issues/6120): Allow negative priorities for hook methods

DEPRECATIONS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ This functionality is currently [hard-deprecated](https://phpunit.de/backward-co
5858
| [#5214](https://github.com/sebastianbergmann/phpunit/issues/5214) | `TestCase::iniSet()` | 10.3.0 | |
5959
| [#5216](https://github.com/sebastianbergmann/phpunit/issues/5216) | `TestCase::setLocale()` | 10.3.0 | |
6060
| [#5800](https://github.com/sebastianbergmann/phpunit/issues/5800) | Targeting traits with `#[CoversClass]` and `#[UsesClass]` | 11.2.0 | `#[CoversClass]` and `#[UsesClass]` also target the traits used by the targeted classes |
61-
| [#5951](https://github.com/sebastianbergmann/phpunit/issues/5951) | `includeUncoveredFiles` configuration option | 11.4.0 | |
6261

6362
## Soft Deprecations
6463

phpunit.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
</xs:element>
6565
</xs:all>
6666
<xs:attribute name="pathCoverage" type="xs:boolean" default="false"/>
67+
<xs:attribute name="includeUncoveredFiles" type="xs:boolean" default="true"/>
6768
<xs:attribute name="ignoreDeprecatedCodeUnits" type="xs:boolean" default="false"/>
6869
<xs:attribute name="disableCodeCoverageIgnore" type="xs:boolean" default="false"/>
6970
</xs:complexType>

src/TextUI/Configuration/Xml/Migration/MigrationBuilder.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@
8484
'11.2' => [
8585
RemoveBeStrictAboutTodoAnnotatedTestsAttribute::class,
8686
],
87-
88-
'11.4' => [
89-
RemoveCoverageElementIncludeUncoveredFilesAttribute::class,
90-
],
9187
];
9288

9389
/**

src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementIncludeUncoveredFilesAttribute.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

tests/_files/XmlConfigurationMigration/output-9.2.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
44
cacheDirectory=".phpunit.cache">
55

6-
<coverage ignoreDeprecatedCodeUnits="true"
6+
<coverage includeUncoveredFiles="true"
7+
ignoreDeprecatedCodeUnits="true"
78
disableCodeCoverageIgnore="true">
89
<report>
910
<clover outputFile="clover.xml"/>

0 commit comments

Comments
 (0)