From 07a022ad0548823b04c8fab073a7bff2fbcf9c8c Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 17 May 2021 08:01:44 +0200 Subject: [PATCH] Closes #4650 --- ChangeLog-10.0.md | 1 + src/TextUI/Command.php | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog-10.0.md b/ChangeLog-10.0.md index bb3aadcccad..9d3480f6e66 100644 --- a/ChangeLog-10.0.md +++ b/ChangeLog-10.0.md @@ -7,6 +7,7 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi ### Added * [#4502](https://github.com/sebastianbergmann/phpunit/issues/4502): Support PHP 8 attributes for adding metadata to test classes and test methods as well as tested code units +* [#4650](https://github.com/sebastianbergmann/phpunit/issues/4650): Support dist file name `phpunit.dist.xml` * `@excludeGlobalVariableFromBackup variable` annotation for excluding a global variable from the backup/restore of global and super-global variables * `#[ExcludeGlobalVariableFromBackup('variable')]` attribute for excluding a global variable from the backup/restore of global and super-global variables * `@excludeStaticPropertyFromBackup className propertyName` annotation for excluding a static property from the backup/restore of static properties in user-defined classes diff --git a/src/TextUI/Command.php b/src/TextUI/Command.php index ec01822c9fc..a43400c5608 100644 --- a/src/TextUI/Command.php +++ b/src/TextUI/Command.php @@ -804,6 +804,7 @@ private function configurationFileInDirectory(string $directory): ?string { $candidates = [ $directory . '/phpunit.xml', + $directory . '/phpunit.dist.xml', $directory . '/phpunit.xml.dist', ];