Skip to content

Commit

Permalink
Closes #6087
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 20, 2024
1 parent 3449010 commit e4e732d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog-10.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes of the PHPUnit 10.5 release series are documented in this fi
### Fixed

* [#6082](/~https://github.com/sebastianbergmann/phpunit/issues/6082): `assertArrayHasKey()`, `assertArrayNotHasKey()`, `arrayHasKey()`, and `ArrayHasKey::__construct()` do not support all possible key types
* [#6087](/~https://github.com/sebastianbergmann/phpunit/issues/6087): `--migrate-configuration` does not remove `beStrictAboutTodoAnnotatedTests` attribute from XML configuration file

## [10.5.39] - 2024-12-11

Expand Down
4 changes: 4 additions & 0 deletions src/TextUI/Configuration/Xml/Migration/MigrationBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ final class MigrationBuilder
'10.0' => [
MoveCoverageDirectoriesToSource::class,
],

'10.4' => [
RemoveBeStrictAboutTodoAnnotatedTestsAttribute::class,
],
];

public function build(string $fromVersion): array
Expand Down
11 changes: 11 additions & 0 deletions tests/_files/XmlConfigurationMigration/input-issue-6087.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
beStrictAboutTodoAnnotatedTests="true"
>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
10 changes: 10 additions & 0 deletions tests/_files/XmlConfigurationMigration/output-issue-6087.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
4 changes: 4 additions & 0 deletions tests/unit/TextUI/Configuration/Xml/MigratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public static function provider(): array
__DIR__ . '/../../../../_files/XmlConfigurationMigration/output-9.5.xml',
__DIR__ . '/../../../../_files/XmlConfigurationMigration/input-9.5.xml',
],
'Issue 6087' => [
__DIR__ . '/../../../../_files/XmlConfigurationMigration/output-issue-6087.xml',
__DIR__ . '/../../../../_files/XmlConfigurationMigration/input-issue-6087.xml',
],
];
}

Expand Down

0 comments on commit e4e732d

Please sign in to comment.