diff --git a/.phive/phars.xml b/.phive/phars.xml index 2f30428bdb9..5ea9e371020 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,7 +1,7 @@ - + diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index c9b4ddcd397..f7b49ef8cde 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -141,7 +141,7 @@ 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => true, - 'native_constant_invocation' => false, + 'native_constant_invocation' => true, 'native_function_casing' => false, 'native_function_invocation' => [ 'include' => [ diff --git a/ChangeLog-11.2.md b/ChangeLog-11.2.md index 146c10d3ff0..8adbec6cb3b 100644 --- a/ChangeLog-11.2.md +++ b/ChangeLog-11.2.md @@ -2,6 +2,13 @@ All notable changes of the PHPUnit 11.2 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. +## [11.2.9] - 2024-07-30 + +### Fixed + +* [#5887](https://github.com/sebastianbergmann/phpunit/pull/5887): Issue baseline generator does not correctly handle ignoring suppressed issues +* [#5908](https://github.com/sebastianbergmann/phpunit/issues/5908): `--list-tests` and `--list-tests-xml` CLI options do not report error when data provider method throws exception + ## [11.2.8] - 2024-07-18 ### Fixed @@ -72,6 +79,7 @@ All notable changes of the PHPUnit 11.2 release series are documented in this fi * [#5800](https://github.com/sebastianbergmann/phpunit/issues/5800): Support for targeting traits with `#[CoversClass]` and `#[UsesClass]` attributes +[11.2.9]: https://github.com/sebastianbergmann/phpunit/compare/11.2.8...11.2.9 [11.2.8]: https://github.com/sebastianbergmann/phpunit/compare/11.2.7...11.2.8 [11.2.7]: https://github.com/sebastianbergmann/phpunit/compare/11.2.6...11.2.7 [11.2.6]: https://github.com/sebastianbergmann/phpunit/compare/11.2.5...11.2.6 diff --git a/src/Event/Dispatcher/CollectingDispatcher.php b/src/Event/Dispatcher/CollectingDispatcher.php index 39433fe3fc6..c431b93e6a5 100644 --- a/src/Event/Dispatcher/CollectingDispatcher.php +++ b/src/Event/Dispatcher/CollectingDispatcher.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CollectingDispatcher implements Dispatcher diff --git a/src/Event/Dispatcher/DeferringDispatcher.php b/src/Event/Dispatcher/DeferringDispatcher.php index 8c67d2df8e9..6895facb386 100644 --- a/src/Event/Dispatcher/DeferringDispatcher.php +++ b/src/Event/Dispatcher/DeferringDispatcher.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DeferringDispatcher implements SubscribableDispatcher diff --git a/src/Event/Dispatcher/DirectDispatcher.php b/src/Event/Dispatcher/DirectDispatcher.php index 8176229dc10..8e83d74632c 100644 --- a/src/Event/Dispatcher/DirectDispatcher.php +++ b/src/Event/Dispatcher/DirectDispatcher.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Event; +use const PHP_EOL; use function array_key_exists; use function dirname; use function sprintf; @@ -16,6 +17,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DirectDispatcher implements SubscribableDispatcher diff --git a/src/Event/Dispatcher/Dispatcher.php b/src/Event/Dispatcher/Dispatcher.php index 35691be71dc..e7086539539 100644 --- a/src/Event/Dispatcher/Dispatcher.php +++ b/src/Event/Dispatcher/Dispatcher.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface Dispatcher diff --git a/src/Event/Dispatcher/SubscribableDispatcher.php b/src/Event/Dispatcher/SubscribableDispatcher.php index 067c0cc6e60..c4393da1249 100644 --- a/src/Event/Dispatcher/SubscribableDispatcher.php +++ b/src/Event/Dispatcher/SubscribableDispatcher.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface SubscribableDispatcher extends Dispatcher diff --git a/src/Event/Emitter/DispatchingEmitter.php b/src/Event/Emitter/DispatchingEmitter.php index 53c5022a285..f533581e116 100644 --- a/src/Event/Emitter/DispatchingEmitter.php +++ b/src/Event/Emitter/DispatchingEmitter.php @@ -30,6 +30,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DispatchingEmitter implements Emitter diff --git a/src/Event/Emitter/Emitter.php b/src/Event/Emitter/Emitter.php index 8c1aa09c970..f7164bfa64e 100644 --- a/src/Event/Emitter/Emitter.php +++ b/src/Event/Emitter/Emitter.php @@ -17,6 +17,8 @@ use PHPUnit\TextUI\Configuration\Configuration; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Emitter diff --git a/src/Event/Events/Test/HookMethod/BeforeFirstTestMethodErrored.php b/src/Event/Events/Test/HookMethod/BeforeFirstTestMethodErrored.php index afe1002f021..c3364a24314 100644 --- a/src/Event/Events/Test/HookMethod/BeforeFirstTestMethodErrored.php +++ b/src/Event/Events/Test/HookMethod/BeforeFirstTestMethodErrored.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Event\Test; +use const PHP_EOL; use function sprintf; use PHPUnit\Event\Code; use PHPUnit\Event\Code\Throwable; diff --git a/src/Event/Events/Test/PrintedUnexpectedOutput.php b/src/Event/Events/Test/PrintedUnexpectedOutput.php index e2479fbbfb1..d000e23f872 100644 --- a/src/Event/Events/Test/PrintedUnexpectedOutput.php +++ b/src/Event/Events/Test/PrintedUnexpectedOutput.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Event\Test; +use const PHP_EOL; use function sprintf; use PHPUnit\Event\Event; use PHPUnit\Event\Telemetry; diff --git a/src/Event/Exception/NoTestCaseObjectOnCallStackException.php b/src/Event/Exception/NoTestCaseObjectOnCallStackException.php index 6e5b03422dc..35b4c25af75 100644 --- a/src/Event/Exception/NoTestCaseObjectOnCallStackException.php +++ b/src/Event/Exception/NoTestCaseObjectOnCallStackException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoTestCaseObjectOnCallStackException extends RuntimeException implements Exception diff --git a/src/Event/Facade.php b/src/Event/Facade.php index aad8d6846c1..f1dae04ce49 100644 --- a/src/Event/Facade.php +++ b/src/Event/Facade.php @@ -15,6 +15,8 @@ use PHPUnit\Event\Telemetry\Php83GarbageCollectorStatusProvider; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Facade diff --git a/src/Event/TypeMap.php b/src/Event/TypeMap.php index b421732072b..df5e79cc35d 100644 --- a/src/Event/TypeMap.php +++ b/src/Event/TypeMap.php @@ -17,6 +17,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TypeMap diff --git a/src/Event/Value/ComparisonFailureBuilder.php b/src/Event/Value/ComparisonFailureBuilder.php index 7413bbe88c0..68f5c4a0be6 100644 --- a/src/Event/Value/ComparisonFailureBuilder.php +++ b/src/Event/Value/ComparisonFailureBuilder.php @@ -16,6 +16,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ComparisonFailureBuilder diff --git a/src/Event/Value/Telemetry/GarbageCollectorStatusProvider.php b/src/Event/Value/Telemetry/GarbageCollectorStatusProvider.php index 15651208e78..09bede2e539 100644 --- a/src/Event/Value/Telemetry/GarbageCollectorStatusProvider.php +++ b/src/Event/Value/Telemetry/GarbageCollectorStatusProvider.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event\Telemetry; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface GarbageCollectorStatusProvider diff --git a/src/Event/Value/Telemetry/MemoryMeter.php b/src/Event/Value/Telemetry/MemoryMeter.php index 4955397e5d8..4d116ff3ef3 100644 --- a/src/Event/Value/Telemetry/MemoryMeter.php +++ b/src/Event/Value/Telemetry/MemoryMeter.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event\Telemetry; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface MemoryMeter diff --git a/src/Event/Value/Telemetry/Php81GarbageCollectorStatusProvider.php b/src/Event/Value/Telemetry/Php81GarbageCollectorStatusProvider.php index f81077e58f6..f909c116347 100644 --- a/src/Event/Value/Telemetry/Php81GarbageCollectorStatusProvider.php +++ b/src/Event/Value/Telemetry/Php81GarbageCollectorStatusProvider.php @@ -12,6 +12,8 @@ use function gc_status; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/Event/Value/Telemetry/Php83GarbageCollectorStatusProvider.php b/src/Event/Value/Telemetry/Php83GarbageCollectorStatusProvider.php index bb08c15661e..9a76ee4f368 100644 --- a/src/Event/Value/Telemetry/Php83GarbageCollectorStatusProvider.php +++ b/src/Event/Value/Telemetry/Php83GarbageCollectorStatusProvider.php @@ -12,6 +12,8 @@ use function gc_status; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Php83GarbageCollectorStatusProvider implements GarbageCollectorStatusProvider diff --git a/src/Event/Value/Telemetry/StopWatch.php b/src/Event/Value/Telemetry/StopWatch.php index 8a1492571a4..07ce5227faa 100644 --- a/src/Event/Value/Telemetry/StopWatch.php +++ b/src/Event/Value/Telemetry/StopWatch.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event\Telemetry; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface StopWatch diff --git a/src/Event/Value/Telemetry/System.php b/src/Event/Value/Telemetry/System.php index e8bcab255e1..0a178363e55 100644 --- a/src/Event/Value/Telemetry/System.php +++ b/src/Event/Value/Telemetry/System.php @@ -10,6 +10,8 @@ namespace PHPUnit\Event\Telemetry; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class System diff --git a/src/Event/Value/Telemetry/SystemMemoryMeter.php b/src/Event/Value/Telemetry/SystemMemoryMeter.php index 053f500a10d..19dd7970b83 100644 --- a/src/Event/Value/Telemetry/SystemMemoryMeter.php +++ b/src/Event/Value/Telemetry/SystemMemoryMeter.php @@ -13,6 +13,8 @@ use function memory_get_usage; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class SystemMemoryMeter implements MemoryMeter diff --git a/src/Event/Value/Telemetry/SystemStopWatch.php b/src/Event/Value/Telemetry/SystemStopWatch.php index 2e640e88c84..a57c1032407 100644 --- a/src/Event/Value/Telemetry/SystemStopWatch.php +++ b/src/Event/Value/Telemetry/SystemStopWatch.php @@ -13,6 +13,8 @@ use PHPUnit\Event\InvalidArgumentException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class SystemStopWatch implements StopWatch diff --git a/src/Event/Value/Telemetry/SystemStopWatchWithOffset.php b/src/Event/Value/Telemetry/SystemStopWatchWithOffset.php index 86696afe628..d27fd98c14b 100644 --- a/src/Event/Value/Telemetry/SystemStopWatchWithOffset.php +++ b/src/Event/Value/Telemetry/SystemStopWatchWithOffset.php @@ -13,6 +13,8 @@ use PHPUnit\Event\InvalidArgumentException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/Event/Value/Test/TestDoxBuilder.php b/src/Event/Value/Test/TestDoxBuilder.php index ae8f62dad26..faa98e5d9ab 100644 --- a/src/Event/Value/Test/TestDoxBuilder.php +++ b/src/Event/Value/Test/TestDoxBuilder.php @@ -13,6 +13,8 @@ use PHPUnit\Logging\TestDox\NamePrettifier; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestDoxBuilder diff --git a/src/Event/Value/Test/TestMethodBuilder.php b/src/Event/Value/Test/TestMethodBuilder.php index 179b0cfa8b0..964db49bdaf 100644 --- a/src/Event/Value/Test/TestMethodBuilder.php +++ b/src/Event/Value/Test/TestMethodBuilder.php @@ -23,6 +23,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMethodBuilder diff --git a/src/Event/Value/TestSuite/TestSuiteBuilder.php b/src/Event/Value/TestSuite/TestSuiteBuilder.php index 19b8a18973c..79566b739e5 100644 --- a/src/Event/Value/TestSuite/TestSuiteBuilder.php +++ b/src/Event/Value/TestSuite/TestSuiteBuilder.php @@ -22,6 +22,8 @@ use ReflectionMethod; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteBuilder diff --git a/src/Event/Value/ThrowableBuilder.php b/src/Event/Value/ThrowableBuilder.php index b887bc2fba1..b7f647ce11b 100644 --- a/src/Event/Value/ThrowableBuilder.php +++ b/src/Event/Value/ThrowableBuilder.php @@ -15,6 +15,8 @@ use PHPUnit\Util\ThrowableToStringMapper; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ThrowableBuilder diff --git a/src/Framework/Attributes/IgnorePhpunitDeprecations.php b/src/Framework/Attributes/IgnorePhpunitDeprecations.php index 4786a01c1c1..c56acebb297 100644 --- a/src/Framework/Attributes/IgnorePhpunitDeprecations.php +++ b/src/Framework/Attributes/IgnorePhpunitDeprecations.php @@ -14,6 +14,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] diff --git a/src/Framework/Constraint/Exception/Exception.php b/src/Framework/Constraint/Exception/Exception.php index 14905e77130..3bbae762cd9 100644 --- a/src/Framework/Constraint/Exception/Exception.php +++ b/src/Framework/Constraint/Exception/Exception.php @@ -14,6 +14,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Exception extends Constraint diff --git a/src/Framework/Constraint/Exception/ExceptionCode.php b/src/Framework/Constraint/Exception/ExceptionCode.php index e470bae6917..2cf2687ae8f 100644 --- a/src/Framework/Constraint/Exception/ExceptionCode.php +++ b/src/Framework/Constraint/Exception/ExceptionCode.php @@ -13,6 +13,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExceptionCode extends Constraint diff --git a/src/Framework/Constraint/Exception/ExceptionMessageIsOrContains.php b/src/Framework/Constraint/Exception/ExceptionMessageIsOrContains.php index 1a4ce3eb868..78320e296a0 100644 --- a/src/Framework/Constraint/Exception/ExceptionMessageIsOrContains.php +++ b/src/Framework/Constraint/Exception/ExceptionMessageIsOrContains.php @@ -14,6 +14,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExceptionMessageIsOrContains extends Constraint diff --git a/src/Framework/Constraint/Exception/ExceptionMessageMatchesRegularExpression.php b/src/Framework/Constraint/Exception/ExceptionMessageMatchesRegularExpression.php index 2d0e0617907..be0a2bfe281 100644 --- a/src/Framework/Constraint/Exception/ExceptionMessageMatchesRegularExpression.php +++ b/src/Framework/Constraint/Exception/ExceptionMessageMatchesRegularExpression.php @@ -15,6 +15,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExceptionMessageMatchesRegularExpression extends Constraint diff --git a/src/Framework/Constraint/String/IsJson.php b/src/Framework/Constraint/String/IsJson.php index fdd663cd9f2..79b2c704644 100644 --- a/src/Framework/Constraint/String/IsJson.php +++ b/src/Framework/Constraint/String/IsJson.php @@ -9,6 +9,12 @@ */ namespace PHPUnit\Framework\Constraint; +use const JSON_ERROR_CTRL_CHAR; +use const JSON_ERROR_DEPTH; +use const JSON_ERROR_NONE; +use const JSON_ERROR_STATE_MISMATCH; +use const JSON_ERROR_SYNTAX; +use const JSON_ERROR_UTF8; use function is_string; use function json_decode; use function json_last_error; diff --git a/src/Framework/Constraint/String/StringMatchesFormatDescription.php b/src/Framework/Constraint/String/StringMatchesFormatDescription.php index 8e5072db35e..e2ba9ff2253 100644 --- a/src/Framework/Constraint/String/StringMatchesFormatDescription.php +++ b/src/Framework/Constraint/String/StringMatchesFormatDescription.php @@ -10,6 +10,7 @@ namespace PHPUnit\Framework\Constraint; use const DIRECTORY_SEPARATOR; +use const PHP_EOL; use function explode; use function implode; use function preg_match; diff --git a/src/Framework/DataProviderTestSuite.php b/src/Framework/DataProviderTestSuite.php index 6975d1c6c09..e506cec4f62 100644 --- a/src/Framework/DataProviderTestSuite.php +++ b/src/Framework/DataProviderTestSuite.php @@ -14,6 +14,8 @@ use PHPUnit\Metadata\Api\Groups; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DataProviderTestSuite extends TestSuite diff --git a/src/Framework/Exception/AssertionFailedError.php b/src/Framework/Exception/AssertionFailedError.php index 0ba25286f6c..6bd59c4aea1 100644 --- a/src/Framework/Exception/AssertionFailedError.php +++ b/src/Framework/Exception/AssertionFailedError.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ class AssertionFailedError extends Exception implements SelfDescribing diff --git a/src/Framework/Exception/CodeCoverageException.php b/src/Framework/Exception/CodeCoverageException.php index 36b07231301..41169ff1bdc 100644 --- a/src/Framework/Exception/CodeCoverageException.php +++ b/src/Framework/Exception/CodeCoverageException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ class CodeCoverageException extends Exception diff --git a/src/Framework/Exception/EmptyStringException.php b/src/Framework/Exception/EmptyStringException.php index e7f4fa9f0fa..f5980cd71ab 100644 --- a/src/Framework/Exception/EmptyStringException.php +++ b/src/Framework/Exception/EmptyStringException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class EmptyStringException extends InvalidArgumentException diff --git a/src/Framework/Exception/Exception.php b/src/Framework/Exception/Exception.php index 087729fb11b..58c661a934f 100644 --- a/src/Framework/Exception/Exception.php +++ b/src/Framework/Exception/Exception.php @@ -34,6 +34,8 @@ * * @see http://fabien.potencier.org/article/9/php-serialization-stack-traces-and-exceptions * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ class Exception extends RuntimeException implements \PHPUnit\Exception diff --git a/src/Framework/Exception/ExpectationFailedException.php b/src/Framework/Exception/ExpectationFailedException.php index 6d2b15013a3..bff863f9f13 100644 --- a/src/Framework/Exception/ExpectationFailedException.php +++ b/src/Framework/Exception/ExpectationFailedException.php @@ -19,6 +19,8 @@ * SebastianBergmann\Comparator\ComparisonFailure which is used to * generate diff output of the failed expectations. * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExpectationFailedException extends AssertionFailedError diff --git a/src/Framework/Exception/GeneratorNotSupportedException.php b/src/Framework/Exception/GeneratorNotSupportedException.php index 2a6ff542c3d..b3b179531a6 100644 --- a/src/Framework/Exception/GeneratorNotSupportedException.php +++ b/src/Framework/Exception/GeneratorNotSupportedException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class GeneratorNotSupportedException extends InvalidArgumentException diff --git a/src/Framework/Exception/Incomplete/IncompleteTest.php b/src/Framework/Exception/Incomplete/IncompleteTest.php index b77b1afff2c..4492ef226f6 100644 --- a/src/Framework/Exception/Incomplete/IncompleteTest.php +++ b/src/Framework/Exception/Incomplete/IncompleteTest.php @@ -12,6 +12,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface IncompleteTest extends Throwable diff --git a/src/Framework/Exception/Incomplete/IncompleteTestError.php b/src/Framework/Exception/Incomplete/IncompleteTestError.php index 65f9c8bc343..a45564da8fb 100644 --- a/src/Framework/Exception/Incomplete/IncompleteTestError.php +++ b/src/Framework/Exception/Incomplete/IncompleteTestError.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class IncompleteTestError extends AssertionFailedError implements IncompleteTest diff --git a/src/Framework/Exception/InvalidArgumentException.php b/src/Framework/Exception/InvalidArgumentException.php index 12a94ec1e5e..700abf03889 100644 --- a/src/Framework/Exception/InvalidArgumentException.php +++ b/src/Framework/Exception/InvalidArgumentException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract class InvalidArgumentException extends Exception diff --git a/src/Framework/Exception/InvalidCoversTargetException.php b/src/Framework/Exception/InvalidCoversTargetException.php index ebf2994a94e..c6300d9e256 100644 --- a/src/Framework/Exception/InvalidCoversTargetException.php +++ b/src/Framework/Exception/InvalidCoversTargetException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidCoversTargetException extends CodeCoverageException diff --git a/src/Framework/Exception/InvalidDataProviderException.php b/src/Framework/Exception/InvalidDataProviderException.php index 7e2ef24c637..a29f4bde38c 100644 --- a/src/Framework/Exception/InvalidDataProviderException.php +++ b/src/Framework/Exception/InvalidDataProviderException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidDataProviderException extends Exception diff --git a/src/Framework/Exception/InvalidDependencyException.php b/src/Framework/Exception/InvalidDependencyException.php index 3a949554c9d..8a636fd4851 100644 --- a/src/Framework/Exception/InvalidDependencyException.php +++ b/src/Framework/Exception/InvalidDependencyException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidDependencyException extends AssertionFailedError implements SkippedTest diff --git a/src/Framework/Exception/NoChildTestSuiteException.php b/src/Framework/Exception/NoChildTestSuiteException.php index 7ef4153b0f0..e59df81df12 100644 --- a/src/Framework/Exception/NoChildTestSuiteException.php +++ b/src/Framework/Exception/NoChildTestSuiteException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoChildTestSuiteException extends Exception diff --git a/src/Framework/Exception/ObjectEquals/ActualValueIsNotAnObjectException.php b/src/Framework/Exception/ObjectEquals/ActualValueIsNotAnObjectException.php index c2579df37a7..258b940ae21 100644 --- a/src/Framework/Exception/ObjectEquals/ActualValueIsNotAnObjectException.php +++ b/src/Framework/Exception/ObjectEquals/ActualValueIsNotAnObjectException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ActualValueIsNotAnObjectException extends Exception diff --git a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotAcceptParameterTypeException.php b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotAcceptParameterTypeException.php index 19f4a490c94..74d00a17d76 100644 --- a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotAcceptParameterTypeException.php +++ b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotAcceptParameterTypeException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ComparisonMethodDoesNotAcceptParameterTypeException extends Exception diff --git a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php index 87cd241d3f6..62dc7e8cbbb 100644 --- a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php +++ b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ComparisonMethodDoesNotDeclareBoolReturnTypeException extends Exception diff --git a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php index b8d61933c5f..d57607447ae 100644 --- a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php +++ b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ComparisonMethodDoesNotDeclareExactlyOneParameterException extends Exception diff --git a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareParameterTypeException.php b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareParameterTypeException.php index 937a3b6971a..65718682913 100644 --- a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareParameterTypeException.php +++ b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareParameterTypeException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ComparisonMethodDoesNotDeclareParameterTypeException extends Exception diff --git a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotExistException.php b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotExistException.php index a482fb4f908..94590b51062 100644 --- a/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotExistException.php +++ b/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotExistException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ComparisonMethodDoesNotExistException extends Exception diff --git a/src/Framework/Exception/PhptAssertionFailedError.php b/src/Framework/Exception/PhptAssertionFailedError.php index e645e69f62a..73f602aa5d4 100644 --- a/src/Framework/Exception/PhptAssertionFailedError.php +++ b/src/Framework/Exception/PhptAssertionFailedError.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class PhptAssertionFailedError extends AssertionFailedError diff --git a/src/Framework/Exception/ProcessIsolationException.php b/src/Framework/Exception/ProcessIsolationException.php index c4086fbb79c..e59c9c60358 100644 --- a/src/Framework/Exception/ProcessIsolationException.php +++ b/src/Framework/Exception/ProcessIsolationException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ProcessIsolationException extends Exception diff --git a/src/Framework/Exception/Skipped/SkippedTest.php b/src/Framework/Exception/Skipped/SkippedTest.php index a12aa402da5..ab2f6749635 100644 --- a/src/Framework/Exception/Skipped/SkippedTest.php +++ b/src/Framework/Exception/Skipped/SkippedTest.php @@ -12,6 +12,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface SkippedTest extends Throwable diff --git a/src/Framework/Exception/Skipped/SkippedTestSuiteError.php b/src/Framework/Exception/Skipped/SkippedTestSuiteError.php index 5448508a1ea..d3a4788b0cf 100644 --- a/src/Framework/Exception/Skipped/SkippedTestSuiteError.php +++ b/src/Framework/Exception/Skipped/SkippedTestSuiteError.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class SkippedTestSuiteError extends AssertionFailedError implements SkippedTest diff --git a/src/Framework/Exception/Skipped/SkippedWithMessageException.php b/src/Framework/Exception/Skipped/SkippedWithMessageException.php index 22b73a1cfbb..d09a760a37c 100644 --- a/src/Framework/Exception/Skipped/SkippedWithMessageException.php +++ b/src/Framework/Exception/Skipped/SkippedWithMessageException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class SkippedWithMessageException extends AssertionFailedError implements SkippedTest diff --git a/src/Framework/Exception/UnknownClassOrInterfaceException.php b/src/Framework/Exception/UnknownClassOrInterfaceException.php index c3cab6c6b67..6a10f97fb1a 100644 --- a/src/Framework/Exception/UnknownClassOrInterfaceException.php +++ b/src/Framework/Exception/UnknownClassOrInterfaceException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class UnknownClassOrInterfaceException extends InvalidArgumentException diff --git a/src/Framework/Exception/UnknownTypeException.php b/src/Framework/Exception/UnknownTypeException.php index b5f9debf3f1..b58b695c744 100644 --- a/src/Framework/Exception/UnknownTypeException.php +++ b/src/Framework/Exception/UnknownTypeException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class UnknownTypeException extends InvalidArgumentException diff --git a/src/Framework/ExecutionOrderDependency.php b/src/Framework/ExecutionOrderDependency.php index 1138fc888c3..091628cc968 100644 --- a/src/Framework/ExecutionOrderDependency.php +++ b/src/Framework/ExecutionOrderDependency.php @@ -20,6 +20,8 @@ use Stringable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExecutionOrderDependency implements Stringable diff --git a/src/Framework/MockObject/ConfigurableMethod.php b/src/Framework/MockObject/ConfigurableMethod.php index ff1788a045c..1762b13f136 100644 --- a/src/Framework/MockObject/ConfigurableMethod.php +++ b/src/Framework/MockObject/ConfigurableMethod.php @@ -12,6 +12,8 @@ use SebastianBergmann\Type\Type; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ConfigurableMethod diff --git a/src/Framework/MockObject/Exception/BadMethodCallException.php b/src/Framework/MockObject/Exception/BadMethodCallException.php index 7e655e235a9..e8ddadda5e1 100644 --- a/src/Framework/MockObject/Exception/BadMethodCallException.php +++ b/src/Framework/MockObject/Exception/BadMethodCallException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class BadMethodCallException extends \BadMethodCallException implements Exception diff --git a/src/Framework/MockObject/Exception/CannotCloneTestDoubleForReadonlyClassException.php b/src/Framework/MockObject/Exception/CannotCloneTestDoubleForReadonlyClassException.php index 00c0c0b120e..ed1cb823d49 100644 --- a/src/Framework/MockObject/Exception/CannotCloneTestDoubleForReadonlyClassException.php +++ b/src/Framework/MockObject/Exception/CannotCloneTestDoubleForReadonlyClassException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/Framework/MockObject/Exception/CannotUseOnlyMethodsException.php b/src/Framework/MockObject/Exception/CannotUseOnlyMethodsException.php index 61fe0cc580b..6cb399e53a6 100644 --- a/src/Framework/MockObject/Exception/CannotUseOnlyMethodsException.php +++ b/src/Framework/MockObject/Exception/CannotUseOnlyMethodsException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CannotUseOnlyMethodsException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/Exception.php b/src/Framework/MockObject/Exception/Exception.php index 5880bc033ec..f7994f20f77 100644 --- a/src/Framework/MockObject/Exception/Exception.php +++ b/src/Framework/MockObject/Exception/Exception.php @@ -12,6 +12,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Exception extends Throwable diff --git a/src/Framework/MockObject/Exception/IncompatibleReturnValueException.php b/src/Framework/MockObject/Exception/IncompatibleReturnValueException.php index 6409204a857..faf8a498d95 100644 --- a/src/Framework/MockObject/Exception/IncompatibleReturnValueException.php +++ b/src/Framework/MockObject/Exception/IncompatibleReturnValueException.php @@ -13,6 +13,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class IncompatibleReturnValueException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/MatchBuilderNotFoundException.php b/src/Framework/MockObject/Exception/MatchBuilderNotFoundException.php index f2e1a31e8e5..8bf8967b066 100644 --- a/src/Framework/MockObject/Exception/MatchBuilderNotFoundException.php +++ b/src/Framework/MockObject/Exception/MatchBuilderNotFoundException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MatchBuilderNotFoundException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/MatcherAlreadyRegisteredException.php b/src/Framework/MockObject/Exception/MatcherAlreadyRegisteredException.php index 0972ffaf85b..de62b867922 100644 --- a/src/Framework/MockObject/Exception/MatcherAlreadyRegisteredException.php +++ b/src/Framework/MockObject/Exception/MatcherAlreadyRegisteredException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MatcherAlreadyRegisteredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php b/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php index 2f0bb5a65a9..4d39b5d9250 100644 --- a/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php +++ b/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MethodCannotBeConfiguredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/MethodNameAlreadyConfiguredException.php b/src/Framework/MockObject/Exception/MethodNameAlreadyConfiguredException.php index 1e9f2c04cac..e4a375927bc 100644 --- a/src/Framework/MockObject/Exception/MethodNameAlreadyConfiguredException.php +++ b/src/Framework/MockObject/Exception/MethodNameAlreadyConfiguredException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MethodNameAlreadyConfiguredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/MethodNameNotConfiguredException.php b/src/Framework/MockObject/Exception/MethodNameNotConfiguredException.php index 89565b77ee2..25c11341660 100644 --- a/src/Framework/MockObject/Exception/MethodNameNotConfiguredException.php +++ b/src/Framework/MockObject/Exception/MethodNameNotConfiguredException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MethodNameNotConfiguredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/MethodParametersAlreadyConfiguredException.php b/src/Framework/MockObject/Exception/MethodParametersAlreadyConfiguredException.php index 1609c6ffb6b..fba96cf45c9 100644 --- a/src/Framework/MockObject/Exception/MethodParametersAlreadyConfiguredException.php +++ b/src/Framework/MockObject/Exception/MethodParametersAlreadyConfiguredException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MethodParametersAlreadyConfiguredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/ReflectionException.php b/src/Framework/MockObject/Exception/ReflectionException.php index d6319c694bb..4981d3a7e48 100644 --- a/src/Framework/MockObject/Exception/ReflectionException.php +++ b/src/Framework/MockObject/Exception/ReflectionException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReflectionException extends RuntimeException implements Exception diff --git a/src/Framework/MockObject/Exception/ReturnValueNotConfiguredException.php b/src/Framework/MockObject/Exception/ReturnValueNotConfiguredException.php index 0b7bceb3fa9..cf193f10c14 100644 --- a/src/Framework/MockObject/Exception/ReturnValueNotConfiguredException.php +++ b/src/Framework/MockObject/Exception/ReturnValueNotConfiguredException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReturnValueNotConfiguredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Exception/RuntimeException.php b/src/Framework/MockObject/Exception/RuntimeException.php index 33b6a5be32f..b99a903e5d1 100644 --- a/src/Framework/MockObject/Exception/RuntimeException.php +++ b/src/Framework/MockObject/Exception/RuntimeException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class RuntimeException extends \RuntimeException implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/CannotUseAddMethodsException.php b/src/Framework/MockObject/Generator/Exception/CannotUseAddMethodsException.php index db8abd1eaa2..9fc5078870c 100644 --- a/src/Framework/MockObject/Generator/Exception/CannotUseAddMethodsException.php +++ b/src/Framework/MockObject/Generator/Exception/CannotUseAddMethodsException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CannotUseAddMethodsException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/ClassIsEnumerationException.php b/src/Framework/MockObject/Generator/Exception/ClassIsEnumerationException.php index 96137c416a3..e2cde18b68b 100644 --- a/src/Framework/MockObject/Generator/Exception/ClassIsEnumerationException.php +++ b/src/Framework/MockObject/Generator/Exception/ClassIsEnumerationException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ClassIsEnumerationException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/ClassIsFinalException.php b/src/Framework/MockObject/Generator/Exception/ClassIsFinalException.php index de9e9430a8b..f10100b90de 100644 --- a/src/Framework/MockObject/Generator/Exception/ClassIsFinalException.php +++ b/src/Framework/MockObject/Generator/Exception/ClassIsFinalException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ClassIsFinalException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/DuplicateMethodException.php b/src/Framework/MockObject/Generator/Exception/DuplicateMethodException.php index 71bed992233..f9a0a766a3d 100644 --- a/src/Framework/MockObject/Generator/Exception/DuplicateMethodException.php +++ b/src/Framework/MockObject/Generator/Exception/DuplicateMethodException.php @@ -15,6 +15,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DuplicateMethodException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/Exception.php b/src/Framework/MockObject/Generator/Exception/Exception.php index 9a3c25884d2..8d62606fca2 100644 --- a/src/Framework/MockObject/Generator/Exception/Exception.php +++ b/src/Framework/MockObject/Generator/Exception/Exception.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Exception as BaseException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface Exception extends BaseException diff --git a/src/Framework/MockObject/Generator/Exception/InvalidMethodNameException.php b/src/Framework/MockObject/Generator/Exception/InvalidMethodNameException.php index 4a7bd68e9b2..32296ce3940 100644 --- a/src/Framework/MockObject/Generator/Exception/InvalidMethodNameException.php +++ b/src/Framework/MockObject/Generator/Exception/InvalidMethodNameException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidMethodNameException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/NameAlreadyInUseException.php b/src/Framework/MockObject/Generator/Exception/NameAlreadyInUseException.php index a1b353f5a9d..c73e717aa9a 100644 --- a/src/Framework/MockObject/Generator/Exception/NameAlreadyInUseException.php +++ b/src/Framework/MockObject/Generator/Exception/NameAlreadyInUseException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NameAlreadyInUseException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/OriginalConstructorInvocationRequiredException.php b/src/Framework/MockObject/Generator/Exception/OriginalConstructorInvocationRequiredException.php index b91e26149de..b284d94d869 100644 --- a/src/Framework/MockObject/Generator/Exception/OriginalConstructorInvocationRequiredException.php +++ b/src/Framework/MockObject/Generator/Exception/OriginalConstructorInvocationRequiredException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Generator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class OriginalConstructorInvocationRequiredException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/ReflectionException.php b/src/Framework/MockObject/Generator/Exception/ReflectionException.php index 03efd52d808..f4a84f18e6e 100644 --- a/src/Framework/MockObject/Generator/Exception/ReflectionException.php +++ b/src/Framework/MockObject/Generator/Exception/ReflectionException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Generator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReflectionException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/RuntimeException.php b/src/Framework/MockObject/Generator/Exception/RuntimeException.php index 0cca5fa5ab1..eed41c37a33 100644 --- a/src/Framework/MockObject/Generator/Exception/RuntimeException.php +++ b/src/Framework/MockObject/Generator/Exception/RuntimeException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Generator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class RuntimeException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/SoapExtensionNotAvailableException.php b/src/Framework/MockObject/Generator/Exception/SoapExtensionNotAvailableException.php index 37af4913145..f6f513b8fbb 100644 --- a/src/Framework/MockObject/Generator/Exception/SoapExtensionNotAvailableException.php +++ b/src/Framework/MockObject/Generator/Exception/SoapExtensionNotAvailableException.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Generator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class SoapExtensionNotAvailableException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/UnknownClassException.php b/src/Framework/MockObject/Generator/Exception/UnknownClassException.php index 64c79e0a233..c5127459172 100644 --- a/src/Framework/MockObject/Generator/Exception/UnknownClassException.php +++ b/src/Framework/MockObject/Generator/Exception/UnknownClassException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class UnknownClassException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Exception/UnknownTraitException.php b/src/Framework/MockObject/Generator/Exception/UnknownTraitException.php index 67cecfa9009..a536b156545 100644 --- a/src/Framework/MockObject/Generator/Exception/UnknownTraitException.php +++ b/src/Framework/MockObject/Generator/Exception/UnknownTraitException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5243 diff --git a/src/Framework/MockObject/Generator/Exception/UnknownTypeException.php b/src/Framework/MockObject/Generator/Exception/UnknownTypeException.php index ccda69bbd80..cd1e1e072b1 100644 --- a/src/Framework/MockObject/Generator/Exception/UnknownTypeException.php +++ b/src/Framework/MockObject/Generator/Exception/UnknownTypeException.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class UnknownTypeException extends \PHPUnit\Framework\Exception implements Exception diff --git a/src/Framework/MockObject/Generator/Generator.php b/src/Framework/MockObject/Generator/Generator.php index 5ca0c790dfc..4ef9621638b 100644 --- a/src/Framework/MockObject/Generator/Generator.php +++ b/src/Framework/MockObject/Generator/Generator.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Generator; use const PHP_EOL; +use const PHP_MAJOR_VERSION; +use const PHP_MINOR_VERSION; use const PREG_OFFSET_CAPTURE; use const WSDL_CACHE_NONE; use function array_merge; @@ -70,6 +72,8 @@ use Traversable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Generator diff --git a/src/Framework/MockObject/Generator/MockClass.php b/src/Framework/MockObject/Generator/MockClass.php index 9edd9067398..db645cda318 100644 --- a/src/Framework/MockObject/Generator/MockClass.php +++ b/src/Framework/MockObject/Generator/MockClass.php @@ -13,6 +13,8 @@ use PHPUnit\Framework\MockObject\ConfigurableMethod; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MockClass implements MockType diff --git a/src/Framework/MockObject/Generator/MockMethod.php b/src/Framework/MockObject/Generator/MockMethod.php index 4c58e8c6eea..81f1cad71c6 100644 --- a/src/Framework/MockObject/Generator/MockMethod.php +++ b/src/Framework/MockObject/Generator/MockMethod.php @@ -30,6 +30,8 @@ use SebastianBergmann\Type\UnknownType; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MockMethod diff --git a/src/Framework/MockObject/Generator/MockMethodSet.php b/src/Framework/MockObject/Generator/MockMethodSet.php index 31f48a6a167..92785cc11c4 100644 --- a/src/Framework/MockObject/Generator/MockMethodSet.php +++ b/src/Framework/MockObject/Generator/MockMethodSet.php @@ -14,6 +14,8 @@ use function strtolower; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MockMethodSet diff --git a/src/Framework/MockObject/Generator/MockTrait.php b/src/Framework/MockObject/Generator/MockTrait.php index dc77ca134b6..e903ce25d6f 100644 --- a/src/Framework/MockObject/Generator/MockTrait.php +++ b/src/Framework/MockObject/Generator/MockTrait.php @@ -12,6 +12,8 @@ use function class_exists; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5243 diff --git a/src/Framework/MockObject/Generator/MockType.php b/src/Framework/MockObject/Generator/MockType.php index 3f7799f0b4d..6003d987aa6 100644 --- a/src/Framework/MockObject/Generator/MockType.php +++ b/src/Framework/MockObject/Generator/MockType.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Generator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface MockType diff --git a/src/Framework/MockObject/Generator/TemplateLoader.php b/src/Framework/MockObject/Generator/TemplateLoader.php index fc3b73a10f0..37545fc9ba2 100644 --- a/src/Framework/MockObject/Generator/TemplateLoader.php +++ b/src/Framework/MockObject/Generator/TemplateLoader.php @@ -12,6 +12,8 @@ use SebastianBergmann\Template\Template; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait TemplateLoader diff --git a/src/Framework/MockObject/MockBuilder.php b/src/Framework/MockObject/MockBuilder.php index 919acb9f704..ac268f54fff 100644 --- a/src/Framework/MockObject/MockBuilder.php +++ b/src/Framework/MockObject/MockBuilder.php @@ -363,6 +363,8 @@ public function enableOriginalClone(): self * @return $this * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5309 + * + * @codeCoverageIgnore */ public function disableAutoload(): self { @@ -441,6 +443,8 @@ public function enableArgumentCloning(): self * @return $this * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5307 + * + * @codeCoverageIgnore */ public function enableProxyingToOriginalMethods(): self { @@ -482,6 +486,8 @@ public function disableProxyingToOriginalMethods(): self * @return $this * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5307 + * + * @codeCoverageIgnore */ public function setProxyTarget(object $object): self { diff --git a/src/Framework/MockObject/Runtime/Api/DoubledCloneMethod.php b/src/Framework/MockObject/Runtime/Api/DoubledCloneMethod.php index c1aae784b53..4da35c0c176 100644 --- a/src/Framework/MockObject/Runtime/Api/DoubledCloneMethod.php +++ b/src/Framework/MockObject/Runtime/Api/DoubledCloneMethod.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait DoubledCloneMethod diff --git a/src/Framework/MockObject/Runtime/Api/ErrorCloneMethod.php b/src/Framework/MockObject/Runtime/Api/ErrorCloneMethod.php index ed93e60e295..0aaf1325618 100644 --- a/src/Framework/MockObject/Runtime/Api/ErrorCloneMethod.php +++ b/src/Framework/MockObject/Runtime/Api/ErrorCloneMethod.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/Framework/MockObject/Runtime/Api/GeneratedAsMockObject.php b/src/Framework/MockObject/Runtime/Api/GeneratedAsMockObject.php index 66ed17679cd..7239221fa51 100644 --- a/src/Framework/MockObject/Runtime/Api/GeneratedAsMockObject.php +++ b/src/Framework/MockObject/Runtime/Api/GeneratedAsMockObject.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait GeneratedAsMockObject diff --git a/src/Framework/MockObject/Runtime/Api/GeneratedAsTestStub.php b/src/Framework/MockObject/Runtime/Api/GeneratedAsTestStub.php index 9009bece743..09b9227b765 100644 --- a/src/Framework/MockObject/Runtime/Api/GeneratedAsTestStub.php +++ b/src/Framework/MockObject/Runtime/Api/GeneratedAsTestStub.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait GeneratedAsTestStub diff --git a/src/Framework/MockObject/Runtime/Api/Method.php b/src/Framework/MockObject/Runtime/Api/Method.php index ebb28a74022..bed26d96cf8 100644 --- a/src/Framework/MockObject/Runtime/Api/Method.php +++ b/src/Framework/MockObject/Runtime/Api/Method.php @@ -15,6 +15,8 @@ use PHPUnit\Framework\MockObject\Rule\AnyInvokedCount; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait Method diff --git a/src/Framework/MockObject/Runtime/Api/MockObjectApi.php b/src/Framework/MockObject/Runtime/Api/MockObjectApi.php index 837c263cef9..735a99190d9 100644 --- a/src/Framework/MockObject/Runtime/Api/MockObjectApi.php +++ b/src/Framework/MockObject/Runtime/Api/MockObjectApi.php @@ -17,6 +17,8 @@ use PHPUnit\Framework\MockObject\Rule\InvocationOrder; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait MockObjectApi diff --git a/src/Framework/MockObject/Runtime/Api/MutableStubApi.php b/src/Framework/MockObject/Runtime/Api/MutableStubApi.php index 88812641dad..3d3cc8ee06d 100644 --- a/src/Framework/MockObject/Runtime/Api/MutableStubApi.php +++ b/src/Framework/MockObject/Runtime/Api/MutableStubApi.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/Framework/MockObject/Runtime/Api/ProxiedCloneMethod.php b/src/Framework/MockObject/Runtime/Api/ProxiedCloneMethod.php index e573031f4ac..88797884d77 100644 --- a/src/Framework/MockObject/Runtime/Api/ProxiedCloneMethod.php +++ b/src/Framework/MockObject/Runtime/Api/ProxiedCloneMethod.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait ProxiedCloneMethod diff --git a/src/Framework/MockObject/Runtime/Api/StubApi.php b/src/Framework/MockObject/Runtime/Api/StubApi.php index 277c6edea66..faba8d40fbb 100644 --- a/src/Framework/MockObject/Runtime/Api/StubApi.php +++ b/src/Framework/MockObject/Runtime/Api/StubApi.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This trait is not covered by the backward compatibility promise for PHPUnit */ trait StubApi diff --git a/src/Framework/MockObject/Runtime/Api/TestDoubleState.php b/src/Framework/MockObject/Runtime/Api/TestDoubleState.php index 43396b27abe..a68c6c396a2 100644 --- a/src/Framework/MockObject/Runtime/Api/TestDoubleState.php +++ b/src/Framework/MockObject/Runtime/Api/TestDoubleState.php @@ -12,6 +12,8 @@ use function assert; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestDoubleState diff --git a/src/Framework/MockObject/Runtime/Builder/Identity.php b/src/Framework/MockObject/Runtime/Builder/Identity.php index 28c0bc035b8..07a9d37cfae 100644 --- a/src/Framework/MockObject/Runtime/Builder/Identity.php +++ b/src/Framework/MockObject/Runtime/Builder/Identity.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Builder; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Identity diff --git a/src/Framework/MockObject/Runtime/Builder/MethodNameMatch.php b/src/Framework/MockObject/Runtime/Builder/MethodNameMatch.php index 46b35e629b0..c25e8df7c12 100644 --- a/src/Framework/MockObject/Runtime/Builder/MethodNameMatch.php +++ b/src/Framework/MockObject/Runtime/Builder/MethodNameMatch.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\Constraint\Constraint; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface MethodNameMatch extends ParametersMatch diff --git a/src/Framework/MockObject/Runtime/Builder/ParametersMatch.php b/src/Framework/MockObject/Runtime/Builder/ParametersMatch.php index 656d21b2b6a..96493d44189 100644 --- a/src/Framework/MockObject/Runtime/Builder/ParametersMatch.php +++ b/src/Framework/MockObject/Runtime/Builder/ParametersMatch.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject\Builder; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface ParametersMatch extends Stub diff --git a/src/Framework/MockObject/Runtime/Builder/Stub.php b/src/Framework/MockObject/Runtime/Builder/Stub.php index d7cb78fc4e3..fce475490b6 100644 --- a/src/Framework/MockObject/Runtime/Builder/Stub.php +++ b/src/Framework/MockObject/Runtime/Builder/Stub.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Stub\Stub as BaseStub; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Stub extends Identity diff --git a/src/Framework/MockObject/Runtime/Interface/MockObjectInternal.php b/src/Framework/MockObject/Runtime/Interface/MockObjectInternal.php index 0952566774a..167d2466db4 100644 --- a/src/Framework/MockObject/Runtime/Interface/MockObjectInternal.php +++ b/src/Framework/MockObject/Runtime/Interface/MockObjectInternal.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface MockObjectInternal extends MockObject, StubInternal diff --git a/src/Framework/MockObject/Runtime/Interface/StubInternal.php b/src/Framework/MockObject/Runtime/Interface/StubInternal.php index 57e46f3df09..ff29a5de34a 100644 --- a/src/Framework/MockObject/Runtime/Interface/StubInternal.php +++ b/src/Framework/MockObject/Runtime/Interface/StubInternal.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\MockObject; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface StubInternal extends Stub diff --git a/src/Framework/MockObject/Runtime/Invocation.php b/src/Framework/MockObject/Runtime/Invocation.php index f99ae28937b..42d35da3084 100644 --- a/src/Framework/MockObject/Runtime/Invocation.php +++ b/src/Framework/MockObject/Runtime/Invocation.php @@ -21,6 +21,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Invocation implements SelfDescribing diff --git a/src/Framework/MockObject/Runtime/InvocationHandler.php b/src/Framework/MockObject/Runtime/InvocationHandler.php index 45baebbbf15..4228d17d102 100644 --- a/src/Framework/MockObject/Runtime/InvocationHandler.php +++ b/src/Framework/MockObject/Runtime/InvocationHandler.php @@ -16,6 +16,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvocationHandler diff --git a/src/Framework/MockObject/Runtime/Matcher.php b/src/Framework/MockObject/Runtime/Matcher.php index f53c1d9fee2..128a5856bd5 100644 --- a/src/Framework/MockObject/Runtime/Matcher.php +++ b/src/Framework/MockObject/Runtime/Matcher.php @@ -22,6 +22,8 @@ use PHPUnit\Util\ThrowableToStringMapper; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Matcher diff --git a/src/Framework/MockObject/Runtime/MethodNameConstraint.php b/src/Framework/MockObject/Runtime/MethodNameConstraint.php index 7d774a6d87d..bb6bf60bdde 100644 --- a/src/Framework/MockObject/Runtime/MethodNameConstraint.php +++ b/src/Framework/MockObject/Runtime/MethodNameConstraint.php @@ -14,6 +14,8 @@ use PHPUnit\Framework\Constraint\Constraint; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MethodNameConstraint extends Constraint diff --git a/src/Framework/MockObject/Runtime/ReturnValueGenerator.php b/src/Framework/MockObject/Runtime/ReturnValueGenerator.php index 55e4c673c2b..9c9524019f6 100644 --- a/src/Framework/MockObject/Runtime/ReturnValueGenerator.php +++ b/src/Framework/MockObject/Runtime/ReturnValueGenerator.php @@ -25,6 +25,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReturnValueGenerator diff --git a/src/Framework/MockObject/Runtime/Rule/AnyInvokedCount.php b/src/Framework/MockObject/Runtime/Rule/AnyInvokedCount.php index 1dd52081182..382f9308116 100644 --- a/src/Framework/MockObject/Runtime/Rule/AnyInvokedCount.php +++ b/src/Framework/MockObject/Runtime/Rule/AnyInvokedCount.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class AnyInvokedCount extends InvocationOrder diff --git a/src/Framework/MockObject/Runtime/Rule/AnyParameters.php b/src/Framework/MockObject/Runtime/Rule/AnyParameters.php index 75232027835..01a54d1b425 100644 --- a/src/Framework/MockObject/Runtime/Rule/AnyParameters.php +++ b/src/Framework/MockObject/Runtime/Rule/AnyParameters.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class AnyParameters implements ParametersRule diff --git a/src/Framework/MockObject/Runtime/Rule/InvocationOrder.php b/src/Framework/MockObject/Runtime/Rule/InvocationOrder.php index 2d7a7d25e46..5d8429d8784 100644 --- a/src/Framework/MockObject/Runtime/Rule/InvocationOrder.php +++ b/src/Framework/MockObject/Runtime/Rule/InvocationOrder.php @@ -14,6 +14,8 @@ use PHPUnit\Framework\SelfDescribing; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract class InvocationOrder implements SelfDescribing diff --git a/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastCount.php b/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastCount.php index d6d251bd860..a78d933d194 100644 --- a/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastCount.php +++ b/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastCount.php @@ -14,6 +14,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvokedAtLeastCount extends InvocationOrder diff --git a/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastOnce.php b/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastOnce.php index efe51838600..91026f53d3f 100644 --- a/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastOnce.php +++ b/src/Framework/MockObject/Runtime/Rule/InvokedAtLeastOnce.php @@ -13,6 +13,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvokedAtLeastOnce extends InvocationOrder diff --git a/src/Framework/MockObject/Runtime/Rule/InvokedAtMostCount.php b/src/Framework/MockObject/Runtime/Rule/InvokedAtMostCount.php index 64ed9403aa5..0cfda5e182d 100644 --- a/src/Framework/MockObject/Runtime/Rule/InvokedAtMostCount.php +++ b/src/Framework/MockObject/Runtime/Rule/InvokedAtMostCount.php @@ -14,6 +14,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvokedAtMostCount extends InvocationOrder diff --git a/src/Framework/MockObject/Runtime/Rule/InvokedCount.php b/src/Framework/MockObject/Runtime/Rule/InvokedCount.php index 638317cac4d..3f0e505a0db 100644 --- a/src/Framework/MockObject/Runtime/Rule/InvokedCount.php +++ b/src/Framework/MockObject/Runtime/Rule/InvokedCount.php @@ -14,6 +14,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvokedCount extends InvocationOrder diff --git a/src/Framework/MockObject/Runtime/Rule/MethodName.php b/src/Framework/MockObject/Runtime/Rule/MethodName.php index e3f3f8adb25..219a8087d8d 100644 --- a/src/Framework/MockObject/Runtime/Rule/MethodName.php +++ b/src/Framework/MockObject/Runtime/Rule/MethodName.php @@ -17,6 +17,8 @@ use PHPUnit\Framework\MockObject\MethodNameConstraint; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MethodName diff --git a/src/Framework/MockObject/Runtime/Rule/Parameters.php b/src/Framework/MockObject/Runtime/Rule/Parameters.php index 4119a0ec961..5db1ff95983 100644 --- a/src/Framework/MockObject/Runtime/Rule/Parameters.php +++ b/src/Framework/MockObject/Runtime/Rule/Parameters.php @@ -19,6 +19,8 @@ use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Parameters implements ParametersRule diff --git a/src/Framework/MockObject/Runtime/Stub/ConsecutiveCalls.php b/src/Framework/MockObject/Runtime/Stub/ConsecutiveCalls.php index 155226ee7e9..14b91fe3566 100644 --- a/src/Framework/MockObject/Runtime/Stub/ConsecutiveCalls.php +++ b/src/Framework/MockObject/Runtime/Stub/ConsecutiveCalls.php @@ -13,6 +13,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ConsecutiveCalls implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/Exception.php b/src/Framework/MockObject/Runtime/Stub/Exception.php index 04bd1303802..ce0a6804a2c 100644 --- a/src/Framework/MockObject/Runtime/Stub/Exception.php +++ b/src/Framework/MockObject/Runtime/Stub/Exception.php @@ -13,6 +13,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Exception implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/ReturnArgument.php b/src/Framework/MockObject/Runtime/Stub/ReturnArgument.php index 5172f64b45d..daca5099d03 100644 --- a/src/Framework/MockObject/Runtime/Stub/ReturnArgument.php +++ b/src/Framework/MockObject/Runtime/Stub/ReturnArgument.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ReturnArgument implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/ReturnCallback.php b/src/Framework/MockObject/Runtime/Stub/ReturnCallback.php index be4a01512d0..4e4cd531025 100644 --- a/src/Framework/MockObject/Runtime/Stub/ReturnCallback.php +++ b/src/Framework/MockObject/Runtime/Stub/ReturnCallback.php @@ -13,6 +13,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReturnCallback implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/ReturnReference.php b/src/Framework/MockObject/Runtime/Stub/ReturnReference.php index fd9e34debb1..448df45273d 100644 --- a/src/Framework/MockObject/Runtime/Stub/ReturnReference.php +++ b/src/Framework/MockObject/Runtime/Stub/ReturnReference.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReturnReference implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/ReturnSelf.php b/src/Framework/MockObject/Runtime/Stub/ReturnSelf.php index 059ef18b2c2..4101d71acd1 100644 --- a/src/Framework/MockObject/Runtime/Stub/ReturnSelf.php +++ b/src/Framework/MockObject/Runtime/Stub/ReturnSelf.php @@ -13,6 +13,8 @@ use PHPUnit\Framework\MockObject\RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReturnSelf implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/ReturnStub.php b/src/Framework/MockObject/Runtime/Stub/ReturnStub.php index eb888c38dff..a2d881c3344 100644 --- a/src/Framework/MockObject/Runtime/Stub/ReturnStub.php +++ b/src/Framework/MockObject/Runtime/Stub/ReturnStub.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ReturnStub implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/ReturnValueMap.php b/src/Framework/MockObject/Runtime/Stub/ReturnValueMap.php index 68db6cb92c0..484b178b8f9 100644 --- a/src/Framework/MockObject/Runtime/Stub/ReturnValueMap.php +++ b/src/Framework/MockObject/Runtime/Stub/ReturnValueMap.php @@ -15,6 +15,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ReturnValueMap implements Stub diff --git a/src/Framework/MockObject/Runtime/Stub/Stub.php b/src/Framework/MockObject/Runtime/Stub/Stub.php index e889adfe74f..46d9e53a933 100644 --- a/src/Framework/MockObject/Runtime/Stub/Stub.php +++ b/src/Framework/MockObject/Runtime/Stub/Stub.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\MockObject\Invocation; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Stub diff --git a/src/Framework/Reorderable.php b/src/Framework/Reorderable.php index a75e8b946f5..cc035d962a6 100644 --- a/src/Framework/Reorderable.php +++ b/src/Framework/Reorderable.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Reorderable diff --git a/src/Framework/SelfDescribing.php b/src/Framework/SelfDescribing.php index 73034f650ab..122c31b5612 100644 --- a/src/Framework/SelfDescribing.php +++ b/src/Framework/SelfDescribing.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface SelfDescribing diff --git a/src/Framework/TestBuilder.php b/src/Framework/TestBuilder.php index e2e63150e42..a89e07c705c 100644 --- a/src/Framework/TestBuilder.php +++ b/src/Framework/TestBuilder.php @@ -23,6 +23,8 @@ use ReflectionClass; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestBuilder diff --git a/src/Framework/TestRunner/IsolatedTestRunner.php b/src/Framework/TestRunner/IsolatedTestRunner.php index 9e798afd966..0322a6046f8 100644 --- a/src/Framework/TestRunner/IsolatedTestRunner.php +++ b/src/Framework/TestRunner/IsolatedTestRunner.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface IsolatedTestRunner diff --git a/src/Framework/TestRunner/IsolatedTestRunnerRegistry.php b/src/Framework/TestRunner/IsolatedTestRunnerRegistry.php index 5b2070cab7a..058246543a5 100644 --- a/src/Framework/TestRunner/IsolatedTestRunnerRegistry.php +++ b/src/Framework/TestRunner/IsolatedTestRunnerRegistry.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class IsolatedTestRunnerRegistry diff --git a/src/Framework/TestRunner/SeparateProcessTestRunner.php b/src/Framework/TestRunner/SeparateProcessTestRunner.php index ec82a791cf3..12985eade29 100644 --- a/src/Framework/TestRunner/SeparateProcessTestRunner.php +++ b/src/Framework/TestRunner/SeparateProcessTestRunner.php @@ -42,7 +42,9 @@ use SebastianBergmann\Template\Template; /** - * @internal This interface is not covered by the backward compatibility promise for PHPUnit + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * + * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class SeparateProcessTestRunner implements IsolatedTestRunner { diff --git a/src/Framework/TestRunner/TestRunner.php b/src/Framework/TestRunner/TestRunner.php index 4f6fa14ee1c..8c5ab0b8720 100644 --- a/src/Framework/TestRunner/TestRunner.php +++ b/src/Framework/TestRunner/TestRunner.php @@ -30,6 +30,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestRunner diff --git a/src/Framework/TestSize/Known.php b/src/Framework/TestSize/Known.php index 80f479a9ff1..bd01652f962 100644 --- a/src/Framework/TestSize/Known.php +++ b/src/Framework/TestSize/Known.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\TestSize; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/Framework/TestSize/Large.php b/src/Framework/TestSize/Large.php index 008baf0b483..7011ce7dfda 100644 --- a/src/Framework/TestSize/Large.php +++ b/src/Framework/TestSize/Large.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\TestSize; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/Framework/TestSize/Medium.php b/src/Framework/TestSize/Medium.php index 027032d3c18..823f062cc99 100644 --- a/src/Framework/TestSize/Medium.php +++ b/src/Framework/TestSize/Medium.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\TestSize; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/Framework/TestSize/Small.php b/src/Framework/TestSize/Small.php index c32be52ec70..363b0ad9337 100644 --- a/src/Framework/TestSize/Small.php +++ b/src/Framework/TestSize/Small.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\TestSize; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/Framework/TestSize/TestSize.php b/src/Framework/TestSize/TestSize.php index 891ab644d5f..f4bc0a2e0af 100644 --- a/src/Framework/TestSize/TestSize.php +++ b/src/Framework/TestSize/TestSize.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\TestSize; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/Framework/TestSize/Unknown.php b/src/Framework/TestSize/Unknown.php index 20234cf8ba0..37c14a8998f 100644 --- a/src/Framework/TestSize/Unknown.php +++ b/src/Framework/TestSize/Unknown.php @@ -10,6 +10,8 @@ namespace PHPUnit\Framework\TestSize; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/Framework/TestStatus/Deprecation.php b/src/Framework/TestStatus/Deprecation.php index 48326e0e79e..59e87a5b02a 100644 --- a/src/Framework/TestStatus/Deprecation.php +++ b/src/Framework/TestStatus/Deprecation.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Deprecation extends Known diff --git a/src/Framework/TestStatus/Error.php b/src/Framework/TestStatus/Error.php index 532681b6963..58f4be64f6b 100644 --- a/src/Framework/TestStatus/Error.php +++ b/src/Framework/TestStatus/Error.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Error extends Known diff --git a/src/Framework/TestStatus/Failure.php b/src/Framework/TestStatus/Failure.php index 6420d3f76fb..23b051aad1a 100644 --- a/src/Framework/TestStatus/Failure.php +++ b/src/Framework/TestStatus/Failure.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Failure extends Known diff --git a/src/Framework/TestStatus/Incomplete.php b/src/Framework/TestStatus/Incomplete.php index 32669174f2a..6428d017469 100644 --- a/src/Framework/TestStatus/Incomplete.php +++ b/src/Framework/TestStatus/Incomplete.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Incomplete extends Known diff --git a/src/Framework/TestStatus/Known.php b/src/Framework/TestStatus/Known.php index 110e22c62a0..92c3d7c8f7d 100644 --- a/src/Framework/TestStatus/Known.php +++ b/src/Framework/TestStatus/Known.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Known extends TestStatus diff --git a/src/Framework/TestStatus/Notice.php b/src/Framework/TestStatus/Notice.php index 17ce48c7ea2..4590db4d8e7 100644 --- a/src/Framework/TestStatus/Notice.php +++ b/src/Framework/TestStatus/Notice.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Notice extends Known diff --git a/src/Framework/TestStatus/Risky.php b/src/Framework/TestStatus/Risky.php index dbcc0a6184d..a11d1be8707 100644 --- a/src/Framework/TestStatus/Risky.php +++ b/src/Framework/TestStatus/Risky.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Risky extends Known diff --git a/src/Framework/TestStatus/Skipped.php b/src/Framework/TestStatus/Skipped.php index b7bae62c463..dd5853c3307 100644 --- a/src/Framework/TestStatus/Skipped.php +++ b/src/Framework/TestStatus/Skipped.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Skipped extends Known diff --git a/src/Framework/TestStatus/Success.php b/src/Framework/TestStatus/Success.php index 622f6f3a30e..68608811704 100644 --- a/src/Framework/TestStatus/Success.php +++ b/src/Framework/TestStatus/Success.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Success extends Known diff --git a/src/Framework/TestStatus/TestStatus.php b/src/Framework/TestStatus/TestStatus.php index e0b94ba8538..46bbe9842c8 100644 --- a/src/Framework/TestStatus/TestStatus.php +++ b/src/Framework/TestStatus/TestStatus.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class TestStatus diff --git a/src/Framework/TestStatus/Unknown.php b/src/Framework/TestStatus/Unknown.php index 146d678ffeb..06392c6bb91 100644 --- a/src/Framework/TestStatus/Unknown.php +++ b/src/Framework/TestStatus/Unknown.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Unknown extends TestStatus diff --git a/src/Framework/TestStatus/Warning.php b/src/Framework/TestStatus/Warning.php index 0f5908e7265..62c3b606a0c 100644 --- a/src/Framework/TestStatus/Warning.php +++ b/src/Framework/TestStatus/Warning.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Warning extends Known diff --git a/src/Framework/TestSuite.php b/src/Framework/TestSuite.php index 57c2206dd10..b0a247845f2 100644 --- a/src/Framework/TestSuite.php +++ b/src/Framework/TestSuite.php @@ -53,6 +53,8 @@ /** * @template-implements IteratorAggregate * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ class TestSuite implements IteratorAggregate, Reorderable, SelfDescribing, Test diff --git a/src/Framework/TestSuiteIterator.php b/src/Framework/TestSuiteIterator.php index 32ee7c6d62c..8af0121834f 100644 --- a/src/Framework/TestSuiteIterator.php +++ b/src/Framework/TestSuiteIterator.php @@ -16,6 +16,8 @@ /** * @template-implements RecursiveIterator * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestSuiteIterator implements RecursiveIterator diff --git a/src/Logging/EventLogger.php b/src/Logging/EventLogger.php index c1c34a3002a..e7f029af914 100644 --- a/src/Logging/EventLogger.php +++ b/src/Logging/EventLogger.php @@ -12,6 +12,7 @@ use const FILE_APPEND; use const LOCK_EX; use const PHP_EOL; +use const PHP_OS_FAMILY; use function file_put_contents; use function implode; use function preg_split; @@ -21,6 +22,8 @@ use PHPUnit\Event\Tracer\Tracer; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class EventLogger implements Tracer diff --git a/src/Logging/Exception.php b/src/Logging/Exception.php index f2e4f8bc734..0e9ddad7b28 100644 --- a/src/Logging/Exception.php +++ b/src/Logging/Exception.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Exception extends RuntimeException implements \PHPUnit\Exception diff --git a/src/Logging/JUnit/JunitXmlLogger.php b/src/Logging/JUnit/JunitXmlLogger.php index 7347bb07094..f68bdc99a67 100644 --- a/src/Logging/JUnit/JunitXmlLogger.php +++ b/src/Logging/JUnit/JunitXmlLogger.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Logging\JUnit; +use const PHP_EOL; use function assert; use function basename; use function is_int; @@ -37,6 +38,8 @@ use PHPUnit\Util\Xml; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class JunitXmlLogger diff --git a/src/Logging/JUnit/Subscriber/Subscriber.php b/src/Logging/JUnit/Subscriber/Subscriber.php index c89924d1e7b..b81f30da409 100644 --- a/src/Logging/JUnit/Subscriber/Subscriber.php +++ b/src/Logging/JUnit/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Logging\JUnit; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Logging/JUnit/Subscriber/TestErroredSubscriber.php b/src/Logging/JUnit/Subscriber/TestErroredSubscriber.php index 89f0e7b7b8a..114b1c84d24 100644 --- a/src/Logging/JUnit/Subscriber/TestErroredSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestErroredSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\ErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestFailedSubscriber.php b/src/Logging/JUnit/Subscriber/TestFailedSubscriber.php index dfc2568865f..e8050784329 100644 --- a/src/Logging/JUnit/Subscriber/TestFailedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestFailedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestFinishedSubscriber.php b/src/Logging/JUnit/Subscriber/TestFinishedSubscriber.php index dc16aec9284..55aed8c6614 100644 --- a/src/Logging/JUnit/Subscriber/TestFinishedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestFinishedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestMarkedIncompleteSubscriber.php b/src/Logging/JUnit/Subscriber/TestMarkedIncompleteSubscriber.php index 5103409d12f..8732af9dd4b 100644 --- a/src/Logging/JUnit/Subscriber/TestMarkedIncompleteSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestMarkedIncompleteSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\MarkedIncompleteSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestPreparationFailedSubscriber.php b/src/Logging/JUnit/Subscriber/TestPreparationFailedSubscriber.php index 82c9f60b195..456466a189f 100644 --- a/src/Logging/JUnit/Subscriber/TestPreparationFailedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestPreparationFailedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\PreparationFailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparationFailedSubscriber extends Subscriber implements PreparationFailedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestPreparationStartedSubscriber.php b/src/Logging/JUnit/Subscriber/TestPreparationStartedSubscriber.php index 39949ac9623..8d24d65546a 100644 --- a/src/Logging/JUnit/Subscriber/TestPreparationStartedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestPreparationStartedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\PreparationStartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparationStartedSubscriber extends Subscriber implements PreparationStartedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestPreparedSubscriber.php b/src/Logging/JUnit/Subscriber/TestPreparedSubscriber.php index 25237b7a6d0..2a80b8af55d 100644 --- a/src/Logging/JUnit/Subscriber/TestPreparedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestPreparedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestRunnerExecutionFinishedSubscriber.php b/src/Logging/JUnit/Subscriber/TestRunnerExecutionFinishedSubscriber.php index 685759bfed0..00617621aba 100644 --- a/src/Logging/JUnit/Subscriber/TestRunnerExecutionFinishedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestRunnerExecutionFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestRunner\ExecutionFinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestRunnerExecutionFinishedSubscriber extends Subscriber implements ExecutionFinishedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestSkippedSubscriber.php b/src/Logging/JUnit/Subscriber/TestSkippedSubscriber.php index dc1ab0a1ed2..c6ee84ac69e 100644 --- a/src/Logging/JUnit/Subscriber/TestSkippedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestSkippedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestSuiteFinishedSubscriber.php b/src/Logging/JUnit/Subscriber/TestSuiteFinishedSubscriber.php index 28a78145eec..47691770731 100644 --- a/src/Logging/JUnit/Subscriber/TestSuiteFinishedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestSuiteFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Logging/JUnit/Subscriber/TestSuiteStartedSubscriber.php b/src/Logging/JUnit/Subscriber/TestSuiteStartedSubscriber.php index 02ea47d18bd..30e350d3419 100644 --- a/src/Logging/JUnit/Subscriber/TestSuiteStartedSubscriber.php +++ b/src/Logging/JUnit/Subscriber/TestSuiteStartedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\StartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/Subscriber.php b/src/Logging/TeamCity/Subscriber/Subscriber.php index 2bc4492bb3b..b1ad46d833d 100644 --- a/src/Logging/TeamCity/Subscriber/Subscriber.php +++ b/src/Logging/TeamCity/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Logging\TeamCity; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Logging/TeamCity/Subscriber/TestConsideredRiskySubscriber.php b/src/Logging/TeamCity/Subscriber/TestConsideredRiskySubscriber.php index 4c1592338a0..9482ccb22d1 100644 --- a/src/Logging/TeamCity/Subscriber/TestConsideredRiskySubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestConsideredRiskySubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\ConsideredRiskySubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestErroredSubscriber.php b/src/Logging/TeamCity/Subscriber/TestErroredSubscriber.php index 7355ed9e6f6..4ce8d0cb774 100644 --- a/src/Logging/TeamCity/Subscriber/TestErroredSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestErroredSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\ErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestFailedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestFailedSubscriber.php index 980485070e4..8d8caa6308e 100644 --- a/src/Logging/TeamCity/Subscriber/TestFailedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestFailedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestFinishedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestFinishedSubscriber.php index f8607007d78..6b4bef3dcc1 100644 --- a/src/Logging/TeamCity/Subscriber/TestFinishedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestFinishedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestMarkedIncompleteSubscriber.php b/src/Logging/TeamCity/Subscriber/TestMarkedIncompleteSubscriber.php index 51da7923cc4..b38d54c44a2 100644 --- a/src/Logging/TeamCity/Subscriber/TestMarkedIncompleteSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestMarkedIncompleteSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\MarkedIncompleteSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestPreparedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestPreparedSubscriber.php index bba23d78dcb..85476a059d4 100644 --- a/src/Logging/TeamCity/Subscriber/TestPreparedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestPreparedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestRunnerExecutionFinishedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestRunnerExecutionFinishedSubscriber.php index b441e6d7f91..824ea424438 100644 --- a/src/Logging/TeamCity/Subscriber/TestRunnerExecutionFinishedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestRunnerExecutionFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestRunner\ExecutionFinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestRunnerExecutionFinishedSubscriber extends Subscriber implements ExecutionFinishedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestSkippedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestSkippedSubscriber.php index 516386aa133..0f55795fc5a 100644 --- a/src/Logging/TeamCity/Subscriber/TestSkippedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestSkippedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestSuiteFinishedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestSuiteFinishedSubscriber.php index 0b0a0a1d0fc..71889d8ce65 100644 --- a/src/Logging/TeamCity/Subscriber/TestSuiteFinishedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestSuiteFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Logging/TeamCity/Subscriber/TestSuiteStartedSubscriber.php b/src/Logging/TeamCity/Subscriber/TestSuiteStartedSubscriber.php index d595d422113..7caba60b6a5 100644 --- a/src/Logging/TeamCity/Subscriber/TestSuiteStartedSubscriber.php +++ b/src/Logging/TeamCity/Subscriber/TestSuiteStartedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\StartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber diff --git a/src/Logging/TeamCity/TeamCityLogger.php b/src/Logging/TeamCity/TeamCityLogger.php index a35b50deda4..a6e0927c3e4 100644 --- a/src/Logging/TeamCity/TeamCityLogger.php +++ b/src/Logging/TeamCity/TeamCityLogger.php @@ -40,6 +40,8 @@ use PHPUnit\TextUI\Output\Printer; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TeamCityLogger diff --git a/src/Logging/TestDox/HtmlRenderer.php b/src/Logging/TestDox/HtmlRenderer.php index ca08bcf54c8..64f88234fd4 100644 --- a/src/Logging/TestDox/HtmlRenderer.php +++ b/src/Logging/TestDox/HtmlRenderer.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class HtmlRenderer diff --git a/src/Logging/TestDox/NamePrettifier.php b/src/Logging/TestDox/NamePrettifier.php index de739a70715..ef9023e53e6 100644 --- a/src/Logging/TestDox/NamePrettifier.php +++ b/src/Logging/TestDox/NamePrettifier.php @@ -48,6 +48,8 @@ use SebastianBergmann\Exporter\Exporter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NamePrettifier diff --git a/src/Logging/TestDox/PlainTextRenderer.php b/src/Logging/TestDox/PlainTextRenderer.php index d379b109165..a3c15198abe 100644 --- a/src/Logging/TestDox/PlainTextRenderer.php +++ b/src/Logging/TestDox/PlainTextRenderer.php @@ -12,6 +12,8 @@ use function sprintf; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class PlainTextRenderer diff --git a/src/Logging/TestDox/TestResult/Subscriber/Subscriber.php b/src/Logging/TestDox/TestResult/Subscriber/Subscriber.php index 6754302ecf8..41fc465a120 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/Subscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Logging\TestDox; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestConsideredRiskySubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestConsideredRiskySubscriber.php index a1dcc2c5d10..150a486350b 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestConsideredRiskySubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestConsideredRiskySubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ConsideredRiskySubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestErroredSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestErroredSubscriber.php index ddc41a8e11a..b210ffa3c32 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestErroredSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestErroredSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestFailedSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestFailedSubscriber.php index e696c5f0d0a..b776227c38b 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestFailedSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestFailedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\FailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestFinishedSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestFinishedSubscriber.php index 04b5c668bd5..14ddea33ea9 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestFinishedSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestFinishedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php index 36e85412197..7e21545cb10 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\MarkedIncompleteSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestPassedSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestPassedSubscriber.php index c04660e0897..1eb1a5777cd 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestPassedSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestPassedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PassedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPassedSubscriber extends Subscriber implements PassedSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestPreparedSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestPreparedSubscriber.php index 6deb540f625..cdaddb09a13 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestPreparedSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestPreparedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestSkippedSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestSkippedSubscriber.php index 83609bfb97e..76d7e3bb094 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestSkippedSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestSkippedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php index d0a5ca9bc77..8e080296632 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\DeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php index f6fc341f8e1..18eff3a9d05 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\NoticeTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php index 8e745d29f71..082bb3c334a 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpDeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php index 00854d1daf4..b743b64a3f8 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpNoticeTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php index 9a7732506b4..4e9c6ac1aeb 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpWarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php index 7d68fb88a4e..4423ff98cfc 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitDeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitDeprecationSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php index 2fc1d3c9497..e4e90f18d91 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitErrorTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitErrorSubscriber extends Subscriber implements PhpunitErrorTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php index 477fd8fd974..72cb8af22c6 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitWarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitWarningSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredWarningSubscriber.php b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredWarningSubscriber.php index be20e18f4da..d44f4005c6a 100644 --- a/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredWarningSubscriber.php +++ b/src/Logging/TestDox/TestResult/Subscriber/TestTriggeredWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\WarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber diff --git a/src/Logging/TestDox/TestResult/TestResult.php b/src/Logging/TestDox/TestResult/TestResult.php index 3d41ab17e9c..3fbbf150060 100644 --- a/src/Logging/TestDox/TestResult/TestResult.php +++ b/src/Logging/TestDox/TestResult/TestResult.php @@ -16,6 +16,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestResult diff --git a/src/Logging/TestDox/TestResult/TestResultCollection.php b/src/Logging/TestDox/TestResult/TestResultCollection.php index aedb7d0fec0..f477bd3ea70 100644 --- a/src/Logging/TestDox/TestResult/TestResultCollection.php +++ b/src/Logging/TestDox/TestResult/TestResultCollection.php @@ -16,6 +16,8 @@ * * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestResultCollection implements IteratorAggregate diff --git a/src/Logging/TestDox/TestResult/TestResultCollectionIterator.php b/src/Logging/TestDox/TestResult/TestResultCollectionIterator.php index 7f07cb5da04..b409fe116c2 100644 --- a/src/Logging/TestDox/TestResult/TestResultCollectionIterator.php +++ b/src/Logging/TestDox/TestResult/TestResultCollectionIterator.php @@ -15,6 +15,8 @@ /** * @template-implements Iterator * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestResultCollectionIterator implements Iterator diff --git a/src/Logging/TestDox/TestResult/TestResultCollector.php b/src/Logging/TestDox/TestResult/TestResultCollector.php index 337a971210b..3d64d53cc3f 100644 --- a/src/Logging/TestDox/TestResult/TestResultCollector.php +++ b/src/Logging/TestDox/TestResult/TestResultCollector.php @@ -44,6 +44,8 @@ use ReflectionMethod; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestResultCollector diff --git a/src/Metadata/Api/CodeCoverage.php b/src/Metadata/Api/CodeCoverage.php index 8e7d950a029..194d1fb57a6 100644 --- a/src/Metadata/Api/CodeCoverage.php +++ b/src/Metadata/Api/CodeCoverage.php @@ -39,6 +39,8 @@ use SebastianBergmann\CodeUnit\Mapper; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CodeCoverage diff --git a/src/Metadata/Api/DataProvider.php b/src/Metadata/Api/DataProvider.php index d8d9670ab15..5b08d060a8b 100644 --- a/src/Metadata/Api/DataProvider.php +++ b/src/Metadata/Api/DataProvider.php @@ -9,6 +9,8 @@ */ namespace PHPUnit\Metadata\Api; +use const JSON_ERROR_NONE; +use const PREG_OFFSET_CAPTURE; use function array_key_exists; use function assert; use function explode; @@ -36,6 +38,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class DataProvider diff --git a/src/Metadata/Api/Dependencies.php b/src/Metadata/Api/Dependencies.php index 94edee72b01..a94d3f01c5f 100644 --- a/src/Metadata/Api/Dependencies.php +++ b/src/Metadata/Api/Dependencies.php @@ -16,6 +16,8 @@ use PHPUnit\Metadata\Parser\Registry; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Dependencies diff --git a/src/Metadata/Api/Groups.php b/src/Metadata/Api/Groups.php index 5c78cbdc340..dca8ef64c86 100644 --- a/src/Metadata/Api/Groups.php +++ b/src/Metadata/Api/Groups.php @@ -26,6 +26,8 @@ use PHPUnit\Metadata\UsesFunction; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Groups diff --git a/src/Metadata/Api/HookMethods.php b/src/Metadata/Api/HookMethods.php index cad724ee2d0..67366d0ee83 100644 --- a/src/Metadata/Api/HookMethods.php +++ b/src/Metadata/Api/HookMethods.php @@ -18,6 +18,8 @@ use ReflectionClass; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class HookMethods diff --git a/src/Metadata/Api/Requirements.php b/src/Metadata/Api/Requirements.php index 0d4a8791a88..b95e716ff43 100644 --- a/src/Metadata/Api/Requirements.php +++ b/src/Metadata/Api/Requirements.php @@ -33,6 +33,8 @@ use PHPUnit\Runner\Version; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Requirements diff --git a/src/Metadata/Exception/AnnotationsAreNotSupportedForInternalClassesException.php b/src/Metadata/Exception/AnnotationsAreNotSupportedForInternalClassesException.php index 8ef0ba7ab60..ddff62e05e7 100644 --- a/src/Metadata/Exception/AnnotationsAreNotSupportedForInternalClassesException.php +++ b/src/Metadata/Exception/AnnotationsAreNotSupportedForInternalClassesException.php @@ -14,6 +14,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class AnnotationsAreNotSupportedForInternalClassesException extends RuntimeException implements Exception diff --git a/src/Metadata/Exception/ReflectionException.php b/src/Metadata/Exception/ReflectionException.php index 67f26dbb95f..04e0d22998a 100644 --- a/src/Metadata/Exception/ReflectionException.php +++ b/src/Metadata/Exception/ReflectionException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReflectionException extends RuntimeException implements Exception diff --git a/src/Metadata/IgnorePhpunitDeprecations.php b/src/Metadata/IgnorePhpunitDeprecations.php index c87d02ce9f4..82241577e25 100644 --- a/src/Metadata/IgnorePhpunitDeprecations.php +++ b/src/Metadata/IgnorePhpunitDeprecations.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class IgnorePhpunitDeprecations extends Metadata diff --git a/src/Metadata/Parser/Annotation/DocBlock.php b/src/Metadata/Parser/Annotation/DocBlock.php index 17d72e21200..c2afdb2627b 100644 --- a/src/Metadata/Parser/Annotation/DocBlock.php +++ b/src/Metadata/Parser/Annotation/DocBlock.php @@ -34,6 +34,8 @@ * allowing us to ask meaningful questions about a specific * reflection symbol. * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DocBlock diff --git a/src/Metadata/Parser/Annotation/Registry.php b/src/Metadata/Parser/Annotation/Registry.php index e41e742836d..51397a700bd 100644 --- a/src/Metadata/Parser/Annotation/Registry.php +++ b/src/Metadata/Parser/Annotation/Registry.php @@ -19,6 +19,8 @@ * Reflection information, and therefore DocBlock information, is static within * a single PHP process. It is therefore okay to use a Singleton registry here. * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Registry diff --git a/src/Metadata/Parser/AnnotationParser.php b/src/Metadata/Parser/AnnotationParser.php index a16f1ae9983..2f2749f9c44 100644 --- a/src/Metadata/Parser/AnnotationParser.php +++ b/src/Metadata/Parser/AnnotationParser.php @@ -35,6 +35,8 @@ use PHPUnit\Util\VersionComparisonOperator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class AnnotationParser implements Parser diff --git a/src/Metadata/Parser/AttributeParser.php b/src/Metadata/Parser/AttributeParser.php index 257c38e3282..08e262810ab 100644 --- a/src/Metadata/Parser/AttributeParser.php +++ b/src/Metadata/Parser/AttributeParser.php @@ -80,6 +80,8 @@ use ReflectionMethod; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class AttributeParser implements Parser diff --git a/src/Metadata/Parser/CachingParser.php b/src/Metadata/Parser/CachingParser.php index ac5363b4dd4..6d3db26ec9c 100644 --- a/src/Metadata/Parser/CachingParser.php +++ b/src/Metadata/Parser/CachingParser.php @@ -12,6 +12,8 @@ use PHPUnit\Metadata\MetadataCollection; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CachingParser implements Parser diff --git a/src/Metadata/Parser/Parser.php b/src/Metadata/Parser/Parser.php index ea61d18f25e..2af9191d40e 100644 --- a/src/Metadata/Parser/Parser.php +++ b/src/Metadata/Parser/Parser.php @@ -12,6 +12,8 @@ use PHPUnit\Metadata\MetadataCollection; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Parser diff --git a/src/Metadata/Parser/ParserChain.php b/src/Metadata/Parser/ParserChain.php index f094e9463fb..2025df5ed92 100644 --- a/src/Metadata/Parser/ParserChain.php +++ b/src/Metadata/Parser/ParserChain.php @@ -12,6 +12,8 @@ use PHPUnit\Metadata\MetadataCollection; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ParserChain implements Parser diff --git a/src/Metadata/Parser/Registry.php b/src/Metadata/Parser/Registry.php index f597bc88b24..a68ab0148f0 100644 --- a/src/Metadata/Parser/Registry.php +++ b/src/Metadata/Parser/Registry.php @@ -13,6 +13,8 @@ * Attribute and annotation information is static within a single PHP process. * It is therefore okay to use a Singleton registry here. * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Registry diff --git a/src/Runner/Baseline/Baseline.php b/src/Runner/Baseline/Baseline.php index 4921f3188fe..3e386171d04 100644 --- a/src/Runner/Baseline/Baseline.php +++ b/src/Runner/Baseline/Baseline.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\Baseline; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Baseline diff --git a/src/Runner/Baseline/Exception/CannotLoadBaselineException.php b/src/Runner/Baseline/Exception/CannotLoadBaselineException.php index c05e803e545..c55901365e6 100644 --- a/src/Runner/Baseline/Exception/CannotLoadBaselineException.php +++ b/src/Runner/Baseline/Exception/CannotLoadBaselineException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CannotLoadBaselineException extends RuntimeException implements Exception diff --git a/src/Runner/Baseline/Exception/FileDoesNotHaveLineException.php b/src/Runner/Baseline/Exception/FileDoesNotHaveLineException.php index 1121fa3949e..20c6ca03056 100644 --- a/src/Runner/Baseline/Exception/FileDoesNotHaveLineException.php +++ b/src/Runner/Baseline/Exception/FileDoesNotHaveLineException.php @@ -14,6 +14,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class FileDoesNotHaveLineException extends RuntimeException implements Exception diff --git a/src/Runner/Baseline/Generator.php b/src/Runner/Baseline/Generator.php index 3765eefff51..6f59cac9546 100644 --- a/src/Runner/Baseline/Generator.php +++ b/src/Runner/Baseline/Generator.php @@ -23,6 +23,8 @@ use PHPUnit\TextUI\Configuration\SourceFilter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Generator @@ -60,11 +62,11 @@ public function baseline(): Baseline */ public function testTriggeredIssue(DeprecationTriggered|NoticeTriggered|PhpDeprecationTriggered|PhpNoticeTriggered|PhpWarningTriggered|WarningTriggered $event): void { - if (!$this->source->ignoreSuppressionOfPhpWarnings() && $event->wasSuppressed()) { + if ($event->wasSuppressed() && !$this->isSuppressionIgnored($event)) { return; } - if ($this->source->restrictWarnings() && !(new SourceFilter)->includes($this->source, $event->file())) { + if ($this->restrict($event) && !(new SourceFilter)->includes($this->source, $event->file())) { return; } @@ -77,4 +79,42 @@ public function testTriggeredIssue(DeprecationTriggered|NoticeTriggered|PhpDepre ), ); } + + private function restrict(DeprecationTriggered|NoticeTriggered|PhpDeprecationTriggered|PhpNoticeTriggered|PhpWarningTriggered|WarningTriggered $event): bool + { + if ($event instanceof WarningTriggered || $event instanceof PhpWarningTriggered) { + return $this->source->restrictWarnings(); + } + + if ($event instanceof NoticeTriggered || $event instanceof PhpNoticeTriggered) { + return $this->source->restrictNotices(); + } + + return $this->source->restrictDeprecations(); + } + + private function isSuppressionIgnored(DeprecationTriggered|NoticeTriggered|PhpDeprecationTriggered|PhpNoticeTriggered|PhpWarningTriggered|WarningTriggered $event): bool + { + if ($event instanceof WarningTriggered) { + return $this->source->ignoreSuppressionOfWarnings(); + } + + if ($event instanceof PhpWarningTriggered) { + return $this->source->ignoreSuppressionOfPhpWarnings(); + } + + if ($event instanceof PhpNoticeTriggered) { + return $this->source->ignoreSuppressionOfPhpNotices(); + } + + if ($event instanceof NoticeTriggered) { + return $this->source->ignoreSuppressionOfNotices(); + } + + if ($event instanceof PhpDeprecationTriggered) { + return $this->source->ignoreSuppressionOfPhpDeprecations(); + } + + return $this->source->ignoreSuppressionOfDeprecations(); + } } diff --git a/src/Runner/Baseline/Issue.php b/src/Runner/Baseline/Issue.php index 2e04a6087ce..536d30ad056 100644 --- a/src/Runner/Baseline/Issue.php +++ b/src/Runner/Baseline/Issue.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Runner\Baseline; +use const FILE_IGNORE_NEW_LINES; use function assert; use function file; use function is_file; @@ -16,6 +17,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Issue diff --git a/src/Runner/Baseline/Reader.php b/src/Runner/Baseline/Reader.php index 02e710651c3..a2e5165a358 100644 --- a/src/Runner/Baseline/Reader.php +++ b/src/Runner/Baseline/Reader.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Runner\Baseline; +use const DIRECTORY_SEPARATOR; use function assert; use function dirname; use function file_exists; @@ -22,6 +23,8 @@ use PHPUnit\Util\Xml\XmlException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Reader diff --git a/src/Runner/Baseline/RelativePathCalculator.php b/src/Runner/Baseline/RelativePathCalculator.php index 6e29beb90c3..83b7015edc2 100644 --- a/src/Runner/Baseline/RelativePathCalculator.php +++ b/src/Runner/Baseline/RelativePathCalculator.php @@ -22,6 +22,8 @@ use function trim; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @see Copied from https://github.com/phpstan/phpstan-src/blob/1.10.33/src/File/ParentDirectoryRelativePathHelper.php diff --git a/src/Runner/Baseline/Subscriber/Subscriber.php b/src/Runner/Baseline/Subscriber/Subscriber.php index a67d66973c5..59ca634b1be 100644 --- a/src/Runner/Baseline/Subscriber/Subscriber.php +++ b/src/Runner/Baseline/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\Baseline; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Runner/Baseline/Subscriber/TestTriggeredDeprecationSubscriber.php b/src/Runner/Baseline/Subscriber/TestTriggeredDeprecationSubscriber.php index 3a6f4e086ff..72e26110609 100644 --- a/src/Runner/Baseline/Subscriber/TestTriggeredDeprecationSubscriber.php +++ b/src/Runner/Baseline/Subscriber/TestTriggeredDeprecationSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber diff --git a/src/Runner/Baseline/Subscriber/TestTriggeredNoticeSubscriber.php b/src/Runner/Baseline/Subscriber/TestTriggeredNoticeSubscriber.php index 7c9b2635b57..288d0eff020 100644 --- a/src/Runner/Baseline/Subscriber/TestTriggeredNoticeSubscriber.php +++ b/src/Runner/Baseline/Subscriber/TestTriggeredNoticeSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber diff --git a/src/Runner/Baseline/Subscriber/TestTriggeredPhpDeprecationSubscriber.php b/src/Runner/Baseline/Subscriber/TestTriggeredPhpDeprecationSubscriber.php index 68e23216416..f72095ac18d 100644 --- a/src/Runner/Baseline/Subscriber/TestTriggeredPhpDeprecationSubscriber.php +++ b/src/Runner/Baseline/Subscriber/TestTriggeredPhpDeprecationSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber diff --git a/src/Runner/Baseline/Subscriber/TestTriggeredPhpNoticeSubscriber.php b/src/Runner/Baseline/Subscriber/TestTriggeredPhpNoticeSubscriber.php index f3ebbbc2f50..9707a46b3fb 100644 --- a/src/Runner/Baseline/Subscriber/TestTriggeredPhpNoticeSubscriber.php +++ b/src/Runner/Baseline/Subscriber/TestTriggeredPhpNoticeSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber diff --git a/src/Runner/Baseline/Subscriber/TestTriggeredPhpWarningSubscriber.php b/src/Runner/Baseline/Subscriber/TestTriggeredPhpWarningSubscriber.php index 8b8a6f5176e..22af95db419 100644 --- a/src/Runner/Baseline/Subscriber/TestTriggeredPhpWarningSubscriber.php +++ b/src/Runner/Baseline/Subscriber/TestTriggeredPhpWarningSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber diff --git a/src/Runner/Baseline/Subscriber/TestTriggeredWarningSubscriber.php b/src/Runner/Baseline/Subscriber/TestTriggeredWarningSubscriber.php index b21b3ebe529..fd5e0db6fc1 100644 --- a/src/Runner/Baseline/Subscriber/TestTriggeredWarningSubscriber.php +++ b/src/Runner/Baseline/Subscriber/TestTriggeredWarningSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Runner\FileDoesNotExistException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber diff --git a/src/Runner/Baseline/Writer.php b/src/Runner/Baseline/Writer.php index 3bc6abb5888..b0f04af0a20 100644 --- a/src/Runner/Baseline/Writer.php +++ b/src/Runner/Baseline/Writer.php @@ -15,6 +15,8 @@ use XMLWriter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Writer diff --git a/src/Runner/CodeCoverage.php b/src/Runner/CodeCoverage.php index b762f9bd604..3a057c73c6a 100644 --- a/src/Runner/CodeCoverage.php +++ b/src/Runner/CodeCoverage.php @@ -37,6 +37,8 @@ use SebastianBergmann\Timer\Timer; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/Runner/DeprecationCollector/Collector.php b/src/Runner/DeprecationCollector/Collector.php index 4232768a17c..830face935f 100644 --- a/src/Runner/DeprecationCollector/Collector.php +++ b/src/Runner/DeprecationCollector/Collector.php @@ -15,6 +15,8 @@ use PHPUnit\Event\UnknownSubscriberTypeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Collector diff --git a/src/Runner/DeprecationCollector/Facade.php b/src/Runner/DeprecationCollector/Facade.php index cad90dd38b8..4d07fe14595 100644 --- a/src/Runner/DeprecationCollector/Facade.php +++ b/src/Runner/DeprecationCollector/Facade.php @@ -14,6 +14,8 @@ use PHPUnit\Event\UnknownSubscriberTypeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Facade diff --git a/src/Runner/DeprecationCollector/Subscriber/Subscriber.php b/src/Runner/DeprecationCollector/Subscriber/Subscriber.php index 5722b8c91cd..9c034ae721b 100644 --- a/src/Runner/DeprecationCollector/Subscriber/Subscriber.php +++ b/src/Runner/DeprecationCollector/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\DeprecationCollector; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract class Subscriber diff --git a/src/Runner/DeprecationCollector/Subscriber/TestPreparedSubscriber.php b/src/Runner/DeprecationCollector/Subscriber/TestPreparedSubscriber.php index c76cd9ccd90..0e78c31a422 100644 --- a/src/Runner/DeprecationCollector/Subscriber/TestPreparedSubscriber.php +++ b/src/Runner/DeprecationCollector/Subscriber/TestPreparedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/Runner/DeprecationCollector/Subscriber/TestTriggeredDeprecationSubscriber.php b/src/Runner/DeprecationCollector/Subscriber/TestTriggeredDeprecationSubscriber.php index 9e9ddd28fd4..a01f1b61ea2 100644 --- a/src/Runner/DeprecationCollector/Subscriber/TestTriggeredDeprecationSubscriber.php +++ b/src/Runner/DeprecationCollector/Subscriber/TestTriggeredDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\DeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber diff --git a/src/Runner/ErrorHandler.php b/src/Runner/ErrorHandler.php index b30c00ff208..031ebc5483a 100644 --- a/src/Runner/ErrorHandler.php +++ b/src/Runner/ErrorHandler.php @@ -43,6 +43,8 @@ use PHPUnit\Util\ExcludeList; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ErrorHandler diff --git a/src/Runner/Exception/ClassCannotBeFoundException.php b/src/Runner/Exception/ClassCannotBeFoundException.php index e64a35932fe..701cbb5b143 100644 --- a/src/Runner/Exception/ClassCannotBeFoundException.php +++ b/src/Runner/Exception/ClassCannotBeFoundException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ClassCannotBeFoundException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/ClassDoesNotExtendTestCaseException.php b/src/Runner/Exception/ClassDoesNotExtendTestCaseException.php index 36ef74d6276..c9d5474e32c 100644 --- a/src/Runner/Exception/ClassDoesNotExtendTestCaseException.php +++ b/src/Runner/Exception/ClassDoesNotExtendTestCaseException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ClassDoesNotExtendTestCaseException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/ClassIsAbstractException.php b/src/Runner/Exception/ClassIsAbstractException.php index 4264bddde66..bf947589979 100644 --- a/src/Runner/Exception/ClassIsAbstractException.php +++ b/src/Runner/Exception/ClassIsAbstractException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ClassIsAbstractException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/DirectoryDoesNotExistException.php b/src/Runner/Exception/DirectoryDoesNotExistException.php index 816f2ada8c2..626c422567f 100644 --- a/src/Runner/Exception/DirectoryDoesNotExistException.php +++ b/src/Runner/Exception/DirectoryDoesNotExistException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DirectoryDoesNotExistException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/ErrorException.php b/src/Runner/Exception/ErrorException.php index c4a8cf4ac19..954684e9fac 100644 --- a/src/Runner/Exception/ErrorException.php +++ b/src/Runner/Exception/ErrorException.php @@ -12,6 +12,8 @@ use Error; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ErrorException extends Error implements Exception diff --git a/src/Runner/Exception/Exception.php b/src/Runner/Exception/Exception.php index 205f76eed42..ea0cf4244d3 100644 --- a/src/Runner/Exception/Exception.php +++ b/src/Runner/Exception/Exception.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Exception extends \PHPUnit\Exception diff --git a/src/Runner/Exception/FileDoesNotExistException.php b/src/Runner/Exception/FileDoesNotExistException.php index f0211ddfdda..5b84c785d5b 100644 --- a/src/Runner/Exception/FileDoesNotExistException.php +++ b/src/Runner/Exception/FileDoesNotExistException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class FileDoesNotExistException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/InvalidOrderException.php b/src/Runner/Exception/InvalidOrderException.php index d02d179ee10..016ec85e457 100644 --- a/src/Runner/Exception/InvalidOrderException.php +++ b/src/Runner/Exception/InvalidOrderException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidOrderException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/InvalidPhptFileException.php b/src/Runner/Exception/InvalidPhptFileException.php index de8c4ecbe06..d1f593b8129 100644 --- a/src/Runner/Exception/InvalidPhptFileException.php +++ b/src/Runner/Exception/InvalidPhptFileException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidPhptFileException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/NoIgnoredEventException.php b/src/Runner/Exception/NoIgnoredEventException.php index 487308f7693..69591e0da46 100644 --- a/src/Runner/Exception/NoIgnoredEventException.php +++ b/src/Runner/Exception/NoIgnoredEventException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoIgnoredEventException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/ParameterDoesNotExistException.php b/src/Runner/Exception/ParameterDoesNotExistException.php index 521fbb53236..5d7a096754a 100644 --- a/src/Runner/Exception/ParameterDoesNotExistException.php +++ b/src/Runner/Exception/ParameterDoesNotExistException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ParameterDoesNotExistException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/PhptExternalFileCannotBeLoadedException.php b/src/Runner/Exception/PhptExternalFileCannotBeLoadedException.php index 5cdb1d9f960..33977155b7d 100644 --- a/src/Runner/Exception/PhptExternalFileCannotBeLoadedException.php +++ b/src/Runner/Exception/PhptExternalFileCannotBeLoadedException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class PhptExternalFileCannotBeLoadedException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/ReflectionException.php b/src/Runner/Exception/ReflectionException.php index 3972304842c..16d1264cefe 100644 --- a/src/Runner/Exception/ReflectionException.php +++ b/src/Runner/Exception/ReflectionException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReflectionException extends RuntimeException implements Exception diff --git a/src/Runner/Exception/UnsupportedPhptSectionException.php b/src/Runner/Exception/UnsupportedPhptSectionException.php index a81d07b0528..ca8647e6fe7 100644 --- a/src/Runner/Exception/UnsupportedPhptSectionException.php +++ b/src/Runner/Exception/UnsupportedPhptSectionException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class UnsupportedPhptSectionException extends RuntimeException implements Exception diff --git a/src/Runner/Extension/ExtensionBootstrapper.php b/src/Runner/Extension/ExtensionBootstrapper.php index c6997475f18..333dcc5adee 100644 --- a/src/Runner/Extension/ExtensionBootstrapper.php +++ b/src/Runner/Extension/ExtensionBootstrapper.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Runner\Extension; +use const PHP_EOL; use function assert; use function class_exists; use function class_implements; @@ -20,6 +21,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ExtensionBootstrapper diff --git a/src/Runner/Extension/PharLoader.php b/src/Runner/Extension/PharLoader.php index 68738ac4fdb..475451ac17e 100644 --- a/src/Runner/Extension/PharLoader.php +++ b/src/Runner/Extension/PharLoader.php @@ -26,6 +26,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class PharLoader diff --git a/src/Runner/Filter/ExcludeGroupFilterIterator.php b/src/Runner/Filter/ExcludeGroupFilterIterator.php index ad0649b3a00..05a685fcbd8 100644 --- a/src/Runner/Filter/ExcludeGroupFilterIterator.php +++ b/src/Runner/Filter/ExcludeGroupFilterIterator.php @@ -12,6 +12,8 @@ use function in_array; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExcludeGroupFilterIterator extends GroupFilterIterator diff --git a/src/Runner/Filter/ExcludeNameFilterIterator.php b/src/Runner/Filter/ExcludeNameFilterIterator.php index f099b129a1e..ff8459312ef 100644 --- a/src/Runner/Filter/ExcludeNameFilterIterator.php +++ b/src/Runner/Filter/ExcludeNameFilterIterator.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\Filter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExcludeNameFilterIterator extends NameFilterIterator diff --git a/src/Runner/Filter/Factory.php b/src/Runner/Filter/Factory.php index 4c30ae0a316..c7d982b01cc 100644 --- a/src/Runner/Filter/Factory.php +++ b/src/Runner/Filter/Factory.php @@ -15,6 +15,8 @@ use PHPUnit\Framework\TestSuite; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Factory diff --git a/src/Runner/Filter/GroupFilterIterator.php b/src/Runner/Filter/GroupFilterIterator.php index 90d8dbe0b3b..795cc55d952 100644 --- a/src/Runner/Filter/GroupFilterIterator.php +++ b/src/Runner/Filter/GroupFilterIterator.php @@ -20,6 +20,8 @@ use RecursiveIterator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract class GroupFilterIterator extends RecursiveFilterIterator diff --git a/src/Runner/Filter/IncludeGroupFilterIterator.php b/src/Runner/Filter/IncludeGroupFilterIterator.php index 895fdc0664a..2bb356f647c 100644 --- a/src/Runner/Filter/IncludeGroupFilterIterator.php +++ b/src/Runner/Filter/IncludeGroupFilterIterator.php @@ -12,6 +12,8 @@ use function in_array; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class IncludeGroupFilterIterator extends GroupFilterIterator diff --git a/src/Runner/Filter/IncludeNameFilterIterator.php b/src/Runner/Filter/IncludeNameFilterIterator.php index 569dacb6a94..9bca65eb2ba 100644 --- a/src/Runner/Filter/IncludeNameFilterIterator.php +++ b/src/Runner/Filter/IncludeNameFilterIterator.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\Filter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class IncludeNameFilterIterator extends NameFilterIterator diff --git a/src/Runner/Filter/NameFilterIterator.php b/src/Runner/Filter/NameFilterIterator.php index 90268bc5020..9863b897607 100644 --- a/src/Runner/Filter/NameFilterIterator.php +++ b/src/Runner/Filter/NameFilterIterator.php @@ -20,6 +20,8 @@ use RecursiveIterator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract class NameFilterIterator extends RecursiveFilterIterator diff --git a/src/Runner/Filter/TestIdFilterIterator.php b/src/Runner/Filter/TestIdFilterIterator.php index 33fbd351208..c0c74a1ff9b 100644 --- a/src/Runner/Filter/TestIdFilterIterator.php +++ b/src/Runner/Filter/TestIdFilterIterator.php @@ -19,6 +19,8 @@ use RecursiveIterator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestIdFilterIterator extends RecursiveFilterIterator diff --git a/src/Runner/GarbageCollection/GarbageCollectionHandler.php b/src/Runner/GarbageCollection/GarbageCollectionHandler.php index 354c2af300a..be460557c04 100644 --- a/src/Runner/GarbageCollection/GarbageCollectionHandler.php +++ b/src/Runner/GarbageCollection/GarbageCollectionHandler.php @@ -17,6 +17,8 @@ use PHPUnit\Event\UnknownSubscriberTypeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class GarbageCollectionHandler diff --git a/src/Runner/GarbageCollection/Subscriber/ExecutionFinishedSubscriber.php b/src/Runner/GarbageCollection/Subscriber/ExecutionFinishedSubscriber.php index 248fa614ed9..4ff8e11357e 100644 --- a/src/Runner/GarbageCollection/Subscriber/ExecutionFinishedSubscriber.php +++ b/src/Runner/GarbageCollection/Subscriber/ExecutionFinishedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\TestRunner\ExecutionFinishedSubscriber as TestRunnerExecutionFinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ExecutionFinishedSubscriber extends Subscriber implements TestRunnerExecutionFinishedSubscriber diff --git a/src/Runner/GarbageCollection/Subscriber/ExecutionStartedSubscriber.php b/src/Runner/GarbageCollection/Subscriber/ExecutionStartedSubscriber.php index 01205779785..1b99b8b72eb 100644 --- a/src/Runner/GarbageCollection/Subscriber/ExecutionStartedSubscriber.php +++ b/src/Runner/GarbageCollection/Subscriber/ExecutionStartedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\TestRunner\ExecutionStartedSubscriber as TestRunnerExecutionStartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ExecutionStartedSubscriber extends Subscriber implements TestRunnerExecutionStartedSubscriber diff --git a/src/Runner/GarbageCollection/Subscriber/Subscriber.php b/src/Runner/GarbageCollection/Subscriber/Subscriber.php index 011e2e3c208..3c9abce8d70 100644 --- a/src/Runner/GarbageCollection/Subscriber/Subscriber.php +++ b/src/Runner/GarbageCollection/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\GarbageCollection; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Runner/GarbageCollection/Subscriber/TestFinishedSubscriber.php b/src/Runner/GarbageCollection/Subscriber/TestFinishedSubscriber.php index 8f193c31096..4ffae389fbc 100644 --- a/src/Runner/GarbageCollection/Subscriber/TestFinishedSubscriber.php +++ b/src/Runner/GarbageCollection/Subscriber/TestFinishedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Runner/PHPT/PhptTestCase.php b/src/Runner/PHPT/PhptTestCase.php index 4e703e7e36c..abb08130a73 100644 --- a/src/Runner/PHPT/PhptTestCase.php +++ b/src/Runner/PHPT/PhptTestCase.php @@ -69,6 +69,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class PhptTestCase implements Reorderable, SelfDescribing, Test diff --git a/src/Runner/ResultCache/DefaultResultCache.php b/src/Runner/ResultCache/DefaultResultCache.php index d5626983557..a9e1eabb372 100644 --- a/src/Runner/ResultCache/DefaultResultCache.php +++ b/src/Runner/ResultCache/DefaultResultCache.php @@ -10,6 +10,7 @@ namespace PHPUnit\Runner\ResultCache; use const DIRECTORY_SEPARATOR; +use const LOCK_EX; use function array_keys; use function assert; use function dirname; @@ -26,6 +27,8 @@ use PHPUnit\Util\Filesystem; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DefaultResultCache implements ResultCache diff --git a/src/Runner/ResultCache/NullResultCache.php b/src/Runner/ResultCache/NullResultCache.php index 289fc6faf73..277e504a346 100644 --- a/src/Runner/ResultCache/NullResultCache.php +++ b/src/Runner/ResultCache/NullResultCache.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\TestStatus\TestStatus; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class NullResultCache implements ResultCache diff --git a/src/Runner/ResultCache/ResultCache.php b/src/Runner/ResultCache/ResultCache.php index 95546048203..74efe2516cf 100644 --- a/src/Runner/ResultCache/ResultCache.php +++ b/src/Runner/ResultCache/ResultCache.php @@ -12,6 +12,8 @@ use PHPUnit\Framework\TestStatus\TestStatus; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface ResultCache diff --git a/src/Runner/ResultCache/ResultCacheHandler.php b/src/Runner/ResultCache/ResultCacheHandler.php index f0b054e2098..927725a83fd 100644 --- a/src/Runner/ResultCache/ResultCacheHandler.php +++ b/src/Runner/ResultCache/ResultCacheHandler.php @@ -26,6 +26,8 @@ use PHPUnit\Framework\TestStatus\TestStatus; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ResultCacheHandler diff --git a/src/Runner/ResultCache/Subscriber/Subscriber.php b/src/Runner/ResultCache/Subscriber/Subscriber.php index 163c3beb5ef..d64dd9f4a22 100644 --- a/src/Runner/ResultCache/Subscriber/Subscriber.php +++ b/src/Runner/ResultCache/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\Runner\ResultCache; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Runner/ResultCache/Subscriber/TestConsideredRiskySubscriber.php b/src/Runner/ResultCache/Subscriber/TestConsideredRiskySubscriber.php index 000efa65665..b2d934013ab 100644 --- a/src/Runner/ResultCache/Subscriber/TestConsideredRiskySubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestConsideredRiskySubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ConsideredRiskySubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestErroredSubscriber.php b/src/Runner/ResultCache/Subscriber/TestErroredSubscriber.php index 0273d4b223d..ff34e0d8f33 100644 --- a/src/Runner/ResultCache/Subscriber/TestErroredSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestErroredSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestFailedSubscriber.php b/src/Runner/ResultCache/Subscriber/TestFailedSubscriber.php index f921a73d80a..082fa51bd6a 100644 --- a/src/Runner/ResultCache/Subscriber/TestFailedSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestFailedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\FailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestFinishedSubscriber.php b/src/Runner/ResultCache/Subscriber/TestFinishedSubscriber.php index db47a8f9ffb..65f75fcb6f5 100644 --- a/src/Runner/ResultCache/Subscriber/TestFinishedSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestFinishedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestMarkedIncompleteSubscriber.php b/src/Runner/ResultCache/Subscriber/TestMarkedIncompleteSubscriber.php index 81f60d6cc5a..d9c65cf8cff 100644 --- a/src/Runner/ResultCache/Subscriber/TestMarkedIncompleteSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestMarkedIncompleteSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\MarkedIncompleteSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestPreparedSubscriber.php b/src/Runner/ResultCache/Subscriber/TestPreparedSubscriber.php index 72e014f39d5..a92b82777f0 100644 --- a/src/Runner/ResultCache/Subscriber/TestPreparedSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestPreparedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestSkippedSubscriber.php b/src/Runner/ResultCache/Subscriber/TestSkippedSubscriber.php index 1097cfd6225..0e493bdc25b 100644 --- a/src/Runner/ResultCache/Subscriber/TestSkippedSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestSkippedSubscriber.php @@ -14,6 +14,8 @@ use PHPUnit\Event\Test\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestSuiteFinishedSubscriber.php b/src/Runner/ResultCache/Subscriber/TestSuiteFinishedSubscriber.php index 5b2d4c77238..1ef0cc3fb46 100644 --- a/src/Runner/ResultCache/Subscriber/TestSuiteFinishedSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestSuiteFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Runner/ResultCache/Subscriber/TestSuiteStartedSubscriber.php b/src/Runner/ResultCache/Subscriber/TestSuiteStartedSubscriber.php index 1bbcaa14743..cddedf511d6 100644 --- a/src/Runner/ResultCache/Subscriber/TestSuiteStartedSubscriber.php +++ b/src/Runner/ResultCache/Subscriber/TestSuiteStartedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\StartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber diff --git a/src/Runner/TestResult/Collector.php b/src/Runner/TestResult/Collector.php index 7e6bce37ffc..59c49d15400 100644 --- a/src/Runner/TestResult/Collector.php +++ b/src/Runner/TestResult/Collector.php @@ -47,6 +47,8 @@ use PHPUnit\TextUI\Configuration\SourceFilter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Collector diff --git a/src/Runner/TestResult/Facade.php b/src/Runner/TestResult/Facade.php index 790e99705d6..75b7471e9a7 100644 --- a/src/Runner/TestResult/Facade.php +++ b/src/Runner/TestResult/Facade.php @@ -15,6 +15,8 @@ use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Facade diff --git a/src/Runner/TestResult/Issue.php b/src/Runner/TestResult/Issue.php index 93fe6d0334e..dcfd17f82b6 100644 --- a/src/Runner/TestResult/Issue.php +++ b/src/Runner/TestResult/Issue.php @@ -12,6 +12,8 @@ use PHPUnit\Event\Code\Test; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Issue diff --git a/src/Runner/TestResult/PassedTests.php b/src/Runner/TestResult/PassedTests.php index 2bd0cf5ce2f..b448bc86ed5 100644 --- a/src/Runner/TestResult/PassedTests.php +++ b/src/Runner/TestResult/PassedTests.php @@ -18,6 +18,8 @@ use PHPUnit\Metadata\Api\Groups; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class PassedTests diff --git a/src/Runner/TestResult/Subscriber/BeforeTestClassMethodErroredSubscriber.php b/src/Runner/TestResult/Subscriber/BeforeTestClassMethodErroredSubscriber.php index 71c67093c9e..1929125e573 100644 --- a/src/Runner/TestResult/Subscriber/BeforeTestClassMethodErroredSubscriber.php +++ b/src/Runner/TestResult/Subscriber/BeforeTestClassMethodErroredSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\BeforeFirstTestMethodErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class BeforeTestClassMethodErroredSubscriber extends Subscriber implements BeforeFirstTestMethodErroredSubscriber diff --git a/src/Runner/TestResult/Subscriber/ExecutionStartedSubscriber.php b/src/Runner/TestResult/Subscriber/ExecutionStartedSubscriber.php index e054117e291..b54ae9e724a 100644 --- a/src/Runner/TestResult/Subscriber/ExecutionStartedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/ExecutionStartedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestRunner\ExecutionStartedSubscriber as TestRunnerExecutionStartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ExecutionStartedSubscriber extends Subscriber implements TestRunnerExecutionStartedSubscriber diff --git a/src/Runner/TestResult/Subscriber/Subscriber.php b/src/Runner/TestResult/Subscriber/Subscriber.php index d7138d44664..36be4941b31 100644 --- a/src/Runner/TestResult/Subscriber/Subscriber.php +++ b/src/Runner/TestResult/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\TestRunner\TestResult; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/Runner/TestResult/Subscriber/TestConsideredRiskySubscriber.php b/src/Runner/TestResult/Subscriber/TestConsideredRiskySubscriber.php index 478a9fccb6d..8584fddcc27 100644 --- a/src/Runner/TestResult/Subscriber/TestConsideredRiskySubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestConsideredRiskySubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ConsideredRiskySubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber diff --git a/src/Runner/TestResult/Subscriber/TestErroredSubscriber.php b/src/Runner/TestResult/Subscriber/TestErroredSubscriber.php index 44b92626cfa..a97c21a689e 100644 --- a/src/Runner/TestResult/Subscriber/TestErroredSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestErroredSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestFailedSubscriber.php b/src/Runner/TestResult/Subscriber/TestFailedSubscriber.php index 6e2b57bf66c..118b304cdc6 100644 --- a/src/Runner/TestResult/Subscriber/TestFailedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestFailedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\FailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestFinishedSubscriber.php b/src/Runner/TestResult/Subscriber/TestFinishedSubscriber.php index cc76bdec4cd..37fe67d0f47 100644 --- a/src/Runner/TestResult/Subscriber/TestFinishedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php b/src/Runner/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php index 52986468d79..c9d13ab5620 100644 --- a/src/Runner/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\MarkedIncompleteSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestPreparedSubscriber.php b/src/Runner/TestResult/Subscriber/TestPreparedSubscriber.php index 064515b89f4..6dd05ca75ec 100644 --- a/src/Runner/TestResult/Subscriber/TestPreparedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestPreparedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestRunnerTriggeredDeprecationSubscriber.php b/src/Runner/TestResult/Subscriber/TestRunnerTriggeredDeprecationSubscriber.php index 9fa45e60492..36b3ea03917 100644 --- a/src/Runner/TestResult/Subscriber/TestRunnerTriggeredDeprecationSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestRunnerTriggeredDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestRunner\DeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestRunnerTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestRunnerTriggeredWarningSubscriber.php b/src/Runner/TestResult/Subscriber/TestRunnerTriggeredWarningSubscriber.php index 2ef1e0e197c..cc01d5db8c1 100644 --- a/src/Runner/TestResult/Subscriber/TestRunnerTriggeredWarningSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestRunnerTriggeredWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestRunner\WarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestRunnerTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestSkippedSubscriber.php b/src/Runner/TestResult/Subscriber/TestSkippedSubscriber.php index 622d0251e07..152db85bf77 100644 --- a/src/Runner/TestResult/Subscriber/TestSkippedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestSkippedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestSuiteFinishedSubscriber.php b/src/Runner/TestResult/Subscriber/TestSuiteFinishedSubscriber.php index 84d72c81f6b..e5f2acac512 100644 --- a/src/Runner/TestResult/Subscriber/TestSuiteFinishedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestSuiteFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestSuiteSkippedSubscriber.php b/src/Runner/TestResult/Subscriber/TestSuiteSkippedSubscriber.php index 206099441c0..0c7cd7abb8d 100644 --- a/src/Runner/TestResult/Subscriber/TestSuiteSkippedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestSuiteSkippedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestSuiteStartedSubscriber.php b/src/Runner/TestResult/Subscriber/TestSuiteStartedSubscriber.php index 5908a66d010..d3cb3bffdd0 100644 --- a/src/Runner/TestResult/Subscriber/TestSuiteStartedSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestSuiteStartedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestSuite\StartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php index 3b7d339ae51..81e93eb3472 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\DeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredErrorSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredErrorSubscriber.php index 1a2956c6bcd..0aef461dbcb 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredErrorSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredErrorSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ErrorTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredErrorSubscriber extends Subscriber implements ErrorTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php index 8544cdea713..67b73c06a01 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\NoticeTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php index c2b73c491fa..5cd17e3f981 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpDeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php index 193d7eefe31..9af0d3206fb 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpNoticeTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php index 499ea179ec7..18eaf4f17a6 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpWarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php index f1b7b4a90e1..3475f11aae1 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitDeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitDeprecationSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php index 9ce03a5f538..0ceba9caa29 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitErrorTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitErrorSubscriber extends Subscriber implements PhpunitErrorTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php index 8f431b3b35c..376c4b60e80 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitWarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitWarningSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber diff --git a/src/Runner/TestResult/Subscriber/TestTriggeredWarningSubscriber.php b/src/Runner/TestResult/Subscriber/TestTriggeredWarningSubscriber.php index 633e67774c5..d5fe3ed5cd5 100644 --- a/src/Runner/TestResult/Subscriber/TestTriggeredWarningSubscriber.php +++ b/src/Runner/TestResult/Subscriber/TestTriggeredWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\WarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber diff --git a/src/Runner/TestResult/TestResult.php b/src/Runner/TestResult/TestResult.php index 2c572608b94..e9c9d64577b 100644 --- a/src/Runner/TestResult/TestResult.php +++ b/src/Runner/TestResult/TestResult.php @@ -25,6 +25,8 @@ use PHPUnit\TestRunner\TestResult\Issues\Issue; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestResult diff --git a/src/Runner/TestSuiteLoader.php b/src/Runner/TestSuiteLoader.php index cffe4d9b7fd..332ea3d2a0b 100644 --- a/src/Runner/TestSuiteLoader.php +++ b/src/Runner/TestSuiteLoader.php @@ -22,6 +22,8 @@ use ReflectionClass; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestSuiteLoader diff --git a/src/Runner/TestSuiteSorter.php b/src/Runner/TestSuiteSorter.php index 6d1a78e716f..b5c0c19d695 100644 --- a/src/Runner/TestSuiteSorter.php +++ b/src/Runner/TestSuiteSorter.php @@ -27,6 +27,8 @@ use PHPUnit\Runner\ResultCache\ResultCache; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestSuiteSorter diff --git a/src/Runner/Version.php b/src/Runner/Version.php index c67a5caf44c..2e9763e4a74 100644 --- a/src/Runner/Version.php +++ b/src/Runner/Version.php @@ -34,7 +34,7 @@ public static function id(): string } if (self::$version === '') { - self::$version = (new VersionId('11.2.8', dirname(__DIR__, 2)))->asString(); + self::$version = (new VersionId('11.2.9', dirname(__DIR__, 2)))->asString(); } return self::$version; diff --git a/src/TextUI/Application.php b/src/TextUI/Application.php index 255094829b2..36a11707846 100644 --- a/src/TextUI/Application.php +++ b/src/TextUI/Application.php @@ -10,6 +10,7 @@ namespace PHPUnit\TextUI; use const PHP_EOL; +use const PHP_VERSION; use function class_exists; use function explode; use function function_exists; @@ -85,6 +86,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Application @@ -289,15 +292,40 @@ public function run(array $argv): int // @codeCoverageIgnoreEnd } - private function execute(Command\Command $command): never + private function execute(Command\Command $command, bool $requiresResultCollectedFromEvents = false): never { + if ($requiresResultCollectedFromEvents) { + try { + TestResultFacade::init(); + EventFacade::instance()->seal(); + + $resultCollectedFromEvents = TestResultFacade::result(); + } catch (EventFacadeIsSealedException|UnknownSubscriberTypeException) { + } + } + print Version::getVersionString() . PHP_EOL . PHP_EOL; $result = $command->execute(); print $result->output(); - exit($result->shellExitCode()); + $shellExitCode = $result->shellExitCode(); + + if (isset($resultCollectedFromEvents) && + $resultCollectedFromEvents->hasTestTriggeredPhpunitErrorEvents()) { + $shellExitCode = Result::EXCEPTION; + + print PHP_EOL . PHP_EOL . 'There were errors:' . PHP_EOL; + + foreach ($resultCollectedFromEvents->testTriggeredPhpunitErrorEvents() as $events) { + foreach ($events as $event) { + print PHP_EOL . trim($event->message()) . PHP_EOL; + } + } + } + + exit($shellExitCode); } private function loadBootstrapScript(string $filename): void @@ -454,6 +482,7 @@ private function executeCommandsThatRequireTheTestSuite(Configuration $configura $testSuite, ), ), + true, ); } @@ -465,6 +494,7 @@ private function executeCommandsThatRequireTheTestSuite(Configuration $configura $testSuite, ), ), + true, ); } @@ -477,6 +507,7 @@ private function executeCommandsThatRequireTheTestSuite(Configuration $configura ), $cliConfiguration->listTestsXml(), ), + true, ); } @@ -488,6 +519,7 @@ private function executeCommandsThatRequireTheTestSuite(Configuration $configura $testSuite, ), ), + true, ); } } diff --git a/src/TextUI/Command/Command.php b/src/TextUI/Command/Command.php index d340c8303e7..4194551e41a 100644 --- a/src/TextUI/Command/Command.php +++ b/src/TextUI/Command/Command.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Command; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Command diff --git a/src/TextUI/Command/Commands/AtLeastVersionCommand.php b/src/TextUI/Command/Commands/AtLeastVersionCommand.php index 0d776af09a7..7bace86c8fd 100644 --- a/src/TextUI/Command/Commands/AtLeastVersionCommand.php +++ b/src/TextUI/Command/Commands/AtLeastVersionCommand.php @@ -13,6 +13,8 @@ use PHPUnit\Runner\Version; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class AtLeastVersionCommand implements Command diff --git a/src/TextUI/Command/Commands/GenerateConfigurationCommand.php b/src/TextUI/Command/Commands/GenerateConfigurationCommand.php index 4217cbea85b..23ba4d9fd5c 100644 --- a/src/TextUI/Command/Commands/GenerateConfigurationCommand.php +++ b/src/TextUI/Command/Commands/GenerateConfigurationCommand.php @@ -9,6 +9,8 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; +use const STDIN; use function fgets; use function file_put_contents; use function getcwd; @@ -18,6 +20,8 @@ use PHPUnit\TextUI\XmlConfiguration\Generator; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class GenerateConfigurationCommand implements Command diff --git a/src/TextUI/Command/Commands/ListGroupsCommand.php b/src/TextUI/Command/Commands/ListGroupsCommand.php index 0d3c3fbdad8..fbddc1403b1 100644 --- a/src/TextUI/Command/Commands/ListGroupsCommand.php +++ b/src/TextUI/Command/Commands/ListGroupsCommand.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function array_merge; use function array_unique; use function sort; @@ -18,6 +19,8 @@ use PHPUnit\Runner\PhptTestCase; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ListGroupsCommand implements Command diff --git a/src/TextUI/Command/Commands/ListTestFilesCommand.php b/src/TextUI/Command/Commands/ListTestFilesCommand.php index 185477dd8b0..ab68d2ab6d9 100644 --- a/src/TextUI/Command/Commands/ListTestFilesCommand.php +++ b/src/TextUI/Command/Commands/ListTestFilesCommand.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function array_unique; use function assert; use function sprintf; @@ -19,6 +20,8 @@ use ReflectionException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ListTestFilesCommand implements Command diff --git a/src/TextUI/Command/Commands/ListTestSuitesCommand.php b/src/TextUI/Command/Commands/ListTestSuitesCommand.php index 82ce790722f..71275b26897 100644 --- a/src/TextUI/Command/Commands/ListTestSuitesCommand.php +++ b/src/TextUI/Command/Commands/ListTestSuitesCommand.php @@ -9,11 +9,14 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function sprintf; use PHPUnit\TextUI\Configuration\Registry; use PHPUnit\TextUI\Configuration\TestSuiteCollection; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ListTestSuitesCommand implements Command diff --git a/src/TextUI/Command/Commands/ListTestsAsTextCommand.php b/src/TextUI/Command/Commands/ListTestsAsTextCommand.php index c4d5700c1b0..32844addaae 100644 --- a/src/TextUI/Command/Commands/ListTestsAsTextCommand.php +++ b/src/TextUI/Command/Commands/ListTestsAsTextCommand.php @@ -9,12 +9,15 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function sprintf; use function str_replace; use PHPUnit\Framework\TestCase; use PHPUnit\Runner\PhptTestCase; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ListTestsAsTextCommand implements Command diff --git a/src/TextUI/Command/Commands/ListTestsAsXmlCommand.php b/src/TextUI/Command/Commands/ListTestsAsXmlCommand.php index 2c0265fa155..483540e9f86 100644 --- a/src/TextUI/Command/Commands/ListTestsAsXmlCommand.php +++ b/src/TextUI/Command/Commands/ListTestsAsXmlCommand.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function file_put_contents; use function ksort; use function sprintf; @@ -17,6 +18,8 @@ use XMLWriter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ListTestsAsXmlCommand implements Command diff --git a/src/TextUI/Command/Commands/MigrateConfigurationCommand.php b/src/TextUI/Command/Commands/MigrateConfigurationCommand.php index 2f31e042589..507ff90f346 100644 --- a/src/TextUI/Command/Commands/MigrateConfigurationCommand.php +++ b/src/TextUI/Command/Commands/MigrateConfigurationCommand.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function copy; use function file_put_contents; use function sprintf; @@ -16,6 +17,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MigrateConfigurationCommand implements Command diff --git a/src/TextUI/Command/Commands/ShowHelpCommand.php b/src/TextUI/Command/Commands/ShowHelpCommand.php index c58231f8b17..1fd04811fc7 100644 --- a/src/TextUI/Command/Commands/ShowHelpCommand.php +++ b/src/TextUI/Command/Commands/ShowHelpCommand.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Help; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ShowHelpCommand implements Command diff --git a/src/TextUI/Command/Commands/ShowVersionCommand.php b/src/TextUI/Command/Commands/ShowVersionCommand.php index 432d6242937..4455a3d2359 100644 --- a/src/TextUI/Command/Commands/ShowVersionCommand.php +++ b/src/TextUI/Command/Commands/ShowVersionCommand.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Command; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ShowVersionCommand implements Command diff --git a/src/TextUI/Command/Commands/VersionCheckCommand.php b/src/TextUI/Command/Commands/VersionCheckCommand.php index c21a8dcacb8..19c492fa17e 100644 --- a/src/TextUI/Command/Commands/VersionCheckCommand.php +++ b/src/TextUI/Command/Commands/VersionCheckCommand.php @@ -9,12 +9,15 @@ */ namespace PHPUnit\TextUI\Command; +use const PHP_EOL; use function file_get_contents; use function sprintf; use function version_compare; use PHPUnit\Runner\Version; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php b/src/TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php index f4a0c022cbd..c489ffdf692 100644 --- a/src/TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php +++ b/src/TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php @@ -19,6 +19,8 @@ use SebastianBergmann\Timer\Timer; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore diff --git a/src/TextUI/Command/Result.php b/src/TextUI/Command/Result.php index fc55eeb1615..0e26ba482fc 100644 --- a/src/TextUI/Command/Result.php +++ b/src/TextUI/Command/Result.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Result diff --git a/src/TextUI/Configuration/Cli/Builder.php b/src/TextUI/Configuration/Cli/Builder.php index e4d21906122..4b8f65343bd 100644 --- a/src/TextUI/Configuration/Cli/Builder.php +++ b/src/TextUI/Configuration/Cli/Builder.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\CliArguments; +use const DIRECTORY_SEPARATOR; use function array_map; use function array_merge; use function basename; @@ -25,6 +26,8 @@ use SebastianBergmann\CliParser\Parser as CliParser; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Builder diff --git a/src/TextUI/Configuration/Cli/Configuration.php b/src/TextUI/Configuration/Cli/Configuration.php index 5c738e2497c..262913474b6 100644 --- a/src/TextUI/Configuration/Cli/Configuration.php +++ b/src/TextUI/Configuration/Cli/Configuration.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\CliArguments; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Cli/Exception.php b/src/TextUI/Configuration/Cli/Exception.php index dd5536eaa50..0d9a5a00e6e 100644 --- a/src/TextUI/Configuration/Cli/Exception.php +++ b/src/TextUI/Configuration/Cli/Exception.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Exception extends RuntimeException implements \PHPUnit\Exception diff --git a/src/TextUI/Configuration/Cli/XmlConfigurationFileFinder.php b/src/TextUI/Configuration/Cli/XmlConfigurationFileFinder.php index c26db7cb06e..62980553d3e 100644 --- a/src/TextUI/Configuration/Cli/XmlConfigurationFileFinder.php +++ b/src/TextUI/Configuration/Cli/XmlConfigurationFileFinder.php @@ -15,6 +15,8 @@ use function realpath; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class XmlConfigurationFileFinder diff --git a/src/TextUI/Configuration/CodeCoverageFilterRegistry.php b/src/TextUI/Configuration/CodeCoverageFilterRegistry.php index ab95233ec0f..7051d2840d8 100644 --- a/src/TextUI/Configuration/CodeCoverageFilterRegistry.php +++ b/src/TextUI/Configuration/CodeCoverageFilterRegistry.php @@ -17,6 +17,8 @@ * CLI options and XML configuration are static within a single PHPUnit process. * It is therefore okay to use a Singleton registry here. * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CodeCoverageFilterRegistry diff --git a/src/TextUI/Configuration/Exception/CannotFindSchemaException.php b/src/TextUI/Configuration/Exception/CannotFindSchemaException.php index 3e89f932a6a..6eef052db7a 100644 --- a/src/TextUI/Configuration/Exception/CannotFindSchemaException.php +++ b/src/TextUI/Configuration/Exception/CannotFindSchemaException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CannotFindSchemaException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/CodeCoverageReportNotConfiguredException.php b/src/TextUI/Configuration/Exception/CodeCoverageReportNotConfiguredException.php index 05243c9a844..83faa0a2d67 100644 --- a/src/TextUI/Configuration/Exception/CodeCoverageReportNotConfiguredException.php +++ b/src/TextUI/Configuration/Exception/CodeCoverageReportNotConfiguredException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CodeCoverageReportNotConfiguredException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/ConfigurationCannotBeBuiltException.php b/src/TextUI/Configuration/Exception/ConfigurationCannotBeBuiltException.php index 8aef86433db..e95e09428d0 100644 --- a/src/TextUI/Configuration/Exception/ConfigurationCannotBeBuiltException.php +++ b/src/TextUI/Configuration/Exception/ConfigurationCannotBeBuiltException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ConfigurationCannotBeBuiltException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/Exception.php b/src/TextUI/Configuration/Exception/Exception.php index 8678983b9f8..dc49125a5f6 100644 --- a/src/TextUI/Configuration/Exception/Exception.php +++ b/src/TextUI/Configuration/Exception/Exception.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Configuration; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface Exception extends \PHPUnit\TextUI\Exception diff --git a/src/TextUI/Configuration/Exception/FilterNotConfiguredException.php b/src/TextUI/Configuration/Exception/FilterNotConfiguredException.php index 9cb4a79ab24..5ae4331f6c5 100644 --- a/src/TextUI/Configuration/Exception/FilterNotConfiguredException.php +++ b/src/TextUI/Configuration/Exception/FilterNotConfiguredException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class FilterNotConfiguredException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/IncludePathNotConfiguredException.php b/src/TextUI/Configuration/Exception/IncludePathNotConfiguredException.php index e4623b24ed0..3b70fea0740 100644 --- a/src/TextUI/Configuration/Exception/IncludePathNotConfiguredException.php +++ b/src/TextUI/Configuration/Exception/IncludePathNotConfiguredException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class IncludePathNotConfiguredException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/LoggingNotConfiguredException.php b/src/TextUI/Configuration/Exception/LoggingNotConfiguredException.php index c10febbb904..63cf9b07010 100644 --- a/src/TextUI/Configuration/Exception/LoggingNotConfiguredException.php +++ b/src/TextUI/Configuration/Exception/LoggingNotConfiguredException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class LoggingNotConfiguredException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoBaselineException.php b/src/TextUI/Configuration/Exception/NoBaselineException.php index eb8cf3ba174..7611dceb17d 100644 --- a/src/TextUI/Configuration/Exception/NoBaselineException.php +++ b/src/TextUI/Configuration/Exception/NoBaselineException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoBaselineException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoBootstrapException.php b/src/TextUI/Configuration/Exception/NoBootstrapException.php index 1abc7e88f04..ff1bddf0ea2 100644 --- a/src/TextUI/Configuration/Exception/NoBootstrapException.php +++ b/src/TextUI/Configuration/Exception/NoBootstrapException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoBootstrapException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoCacheDirectoryException.php b/src/TextUI/Configuration/Exception/NoCacheDirectoryException.php index 36d2499ed2e..215fe21f6f8 100644 --- a/src/TextUI/Configuration/Exception/NoCacheDirectoryException.php +++ b/src/TextUI/Configuration/Exception/NoCacheDirectoryException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoCacheDirectoryException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoCliArgumentException.php b/src/TextUI/Configuration/Exception/NoCliArgumentException.php index 18c5e16fb98..42ed0d49597 100644 --- a/src/TextUI/Configuration/Exception/NoCliArgumentException.php +++ b/src/TextUI/Configuration/Exception/NoCliArgumentException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoCliArgumentException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoConfigurationFileException.php b/src/TextUI/Configuration/Exception/NoConfigurationFileException.php index 1d488d3b09a..f8ceb80ba2e 100644 --- a/src/TextUI/Configuration/Exception/NoConfigurationFileException.php +++ b/src/TextUI/Configuration/Exception/NoConfigurationFileException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoConfigurationFileException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoCoverageCacheDirectoryException.php b/src/TextUI/Configuration/Exception/NoCoverageCacheDirectoryException.php index 54eaabbe4eb..113950b5d3d 100644 --- a/src/TextUI/Configuration/Exception/NoCoverageCacheDirectoryException.php +++ b/src/TextUI/Configuration/Exception/NoCoverageCacheDirectoryException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoCoverageCacheDirectoryException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoCustomCssFileException.php b/src/TextUI/Configuration/Exception/NoCustomCssFileException.php index 672b1fc1ead..e524c8db50a 100644 --- a/src/TextUI/Configuration/Exception/NoCustomCssFileException.php +++ b/src/TextUI/Configuration/Exception/NoCustomCssFileException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoCustomCssFileException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoDefaultTestSuiteException.php b/src/TextUI/Configuration/Exception/NoDefaultTestSuiteException.php index 28663ff5db1..96e7a7ada86 100644 --- a/src/TextUI/Configuration/Exception/NoDefaultTestSuiteException.php +++ b/src/TextUI/Configuration/Exception/NoDefaultTestSuiteException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoDefaultTestSuiteException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Exception/NoPharExtensionDirectoryException.php b/src/TextUI/Configuration/Exception/NoPharExtensionDirectoryException.php index 269be3bd6bf..ce573ca79ec 100644 --- a/src/TextUI/Configuration/Exception/NoPharExtensionDirectoryException.php +++ b/src/TextUI/Configuration/Exception/NoPharExtensionDirectoryException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class NoPharExtensionDirectoryException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Merger.php b/src/TextUI/Configuration/Merger.php index 820f894b32d..5ce4e5ee85b 100644 --- a/src/TextUI/Configuration/Merger.php +++ b/src/TextUI/Configuration/Merger.php @@ -10,6 +10,7 @@ namespace PHPUnit\TextUI\Configuration; use const DIRECTORY_SEPARATOR; +use const PATH_SEPARATOR; use function array_diff; use function assert; use function dirname; @@ -31,6 +32,8 @@ use SebastianBergmann\Invoker\Invoker; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Merger diff --git a/src/TextUI/Configuration/PhpHandler.php b/src/TextUI/Configuration/PhpHandler.php index 7818c1bbebc..3aa13160e16 100644 --- a/src/TextUI/Configuration/PhpHandler.php +++ b/src/TextUI/Configuration/PhpHandler.php @@ -20,6 +20,8 @@ use function putenv; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class PhpHandler diff --git a/src/TextUI/Configuration/Registry.php b/src/TextUI/Configuration/Registry.php index 9cdbf3989bd..bde319a77d5 100644 --- a/src/TextUI/Configuration/Registry.php +++ b/src/TextUI/Configuration/Registry.php @@ -24,6 +24,8 @@ * CLI options and XML configuration are static within a single PHPUnit process. * It is therefore okay to use a Singleton registry here. * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Registry diff --git a/src/TextUI/Configuration/SourceFilter.php b/src/TextUI/Configuration/SourceFilter.php index 73c1a31461e..a562f6a87b8 100644 --- a/src/TextUI/Configuration/SourceFilter.php +++ b/src/TextUI/Configuration/SourceFilter.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Configuration; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class SourceFilter diff --git a/src/TextUI/Configuration/SourceMapper.php b/src/TextUI/Configuration/SourceMapper.php index 8e42dbf8b1d..f5d837f912a 100644 --- a/src/TextUI/Configuration/SourceMapper.php +++ b/src/TextUI/Configuration/SourceMapper.php @@ -14,6 +14,8 @@ use SplObjectStorage; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class SourceMapper diff --git a/src/TextUI/Configuration/TestSuiteBuilder.php b/src/TextUI/Configuration/TestSuiteBuilder.php index 1a1155cead4..effe6e041dd 100644 --- a/src/TextUI/Configuration/TestSuiteBuilder.php +++ b/src/TextUI/Configuration/TestSuiteBuilder.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Configuration; +use const PHP_EOL; use function assert; use function count; use function is_dir; @@ -26,6 +27,8 @@ use SebastianBergmann\FileIterator\Facade as FileIteratorFacade; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteBuilder diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php b/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php index 47b31daa0a3..ce75b06cd6a 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php @@ -19,6 +19,8 @@ use PHPUnit\TextUI\XmlConfiguration\Exception; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Clover.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Clover.php index dd5ca28d7d1..c98c55c4472 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Clover.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Clover.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Cobertura.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Cobertura.php index 19cb5dcef5e..72e01fb9134 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Cobertura.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Cobertura.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Crap4j.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Crap4j.php index 47ab2a81589..d60384f25aa 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Crap4j.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Crap4j.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Html.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Html.php index 91605b8fa81..d17cb1026b2 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Html.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Html.php @@ -13,6 +13,8 @@ use PHPUnit\TextUI\Configuration\NoCustomCssFileException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Php.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Php.php index 91c18333917..cdc59543ae7 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Php.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Php.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Text.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Text.php index 4c4a3b8504a..f13711fe211 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Text.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Text.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Xml.php b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Xml.php index 581f0efcd9c..907020d8ae5 100644 --- a/src/TextUI/Configuration/Xml/CodeCoverage/Report/Xml.php +++ b/src/TextUI/Configuration/Xml/CodeCoverage/Report/Xml.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\Directory; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Configuration.php b/src/TextUI/Configuration/Xml/Configuration.php index 9959a0b79bc..a914377f614 100644 --- a/src/TextUI/Configuration/Xml/Configuration.php +++ b/src/TextUI/Configuration/Xml/Configuration.php @@ -17,6 +17,8 @@ use PHPUnit\TextUI\XmlConfiguration\Logging\Logging; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/DefaultConfiguration.php b/src/TextUI/Configuration/Xml/DefaultConfiguration.php index a36c54bcaf7..8c987f9aba3 100644 --- a/src/TextUI/Configuration/Xml/DefaultConfiguration.php +++ b/src/TextUI/Configuration/Xml/DefaultConfiguration.php @@ -25,6 +25,8 @@ use PHPUnit\TextUI\XmlConfiguration\Logging\Logging; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Exception.php b/src/TextUI/Configuration/Xml/Exception.php index 162b37e8814..60c3c9acc71 100644 --- a/src/TextUI/Configuration/Xml/Exception.php +++ b/src/TextUI/Configuration/Xml/Exception.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Exception extends RuntimeException implements \PHPUnit\Exception diff --git a/src/TextUI/Configuration/Xml/Generator.php b/src/TextUI/Configuration/Xml/Generator.php index db2060fbf23..38d1fbd69ed 100644 --- a/src/TextUI/Configuration/Xml/Generator.php +++ b/src/TextUI/Configuration/Xml/Generator.php @@ -12,6 +12,8 @@ use function str_replace; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Generator diff --git a/src/TextUI/Configuration/Xml/Groups.php b/src/TextUI/Configuration/Xml/Groups.php index b51d7504b7f..00ab455f099 100644 --- a/src/TextUI/Configuration/Xml/Groups.php +++ b/src/TextUI/Configuration/Xml/Groups.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\GroupCollection; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/LoadedFromFileConfiguration.php b/src/TextUI/Configuration/Xml/LoadedFromFileConfiguration.php index 33fb4b197fd..8eff88f221b 100644 --- a/src/TextUI/Configuration/Xml/LoadedFromFileConfiguration.php +++ b/src/TextUI/Configuration/Xml/LoadedFromFileConfiguration.php @@ -17,6 +17,8 @@ use PHPUnit\TextUI\XmlConfiguration\Logging\Logging; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Loader.php b/src/TextUI/Configuration/Xml/Loader.php index b98b5956397..0c3a2baeeee 100644 --- a/src/TextUI/Configuration/Xml/Loader.php +++ b/src/TextUI/Configuration/Xml/Loader.php @@ -75,6 +75,8 @@ use SebastianBergmann\CodeCoverage\Report\Thresholds; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Loader diff --git a/src/TextUI/Configuration/Xml/Logging/Junit.php b/src/TextUI/Configuration/Xml/Logging/Junit.php index 36b24109987..df10b61d605 100644 --- a/src/TextUI/Configuration/Xml/Logging/Junit.php +++ b/src/TextUI/Configuration/Xml/Logging/Junit.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Logging/Logging.php b/src/TextUI/Configuration/Xml/Logging/Logging.php index b2dc9af42bf..553b6b2b242 100644 --- a/src/TextUI/Configuration/Xml/Logging/Logging.php +++ b/src/TextUI/Configuration/Xml/Logging/Logging.php @@ -14,6 +14,8 @@ use PHPUnit\TextUI\XmlConfiguration\Logging\TestDox\Text as TestDoxText; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Logging/TeamCity.php b/src/TextUI/Configuration/Xml/Logging/TeamCity.php index 8c5607cf9a7..fa420a161f7 100644 --- a/src/TextUI/Configuration/Xml/Logging/TeamCity.php +++ b/src/TextUI/Configuration/Xml/Logging/TeamCity.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Logging/TestDox/Html.php b/src/TextUI/Configuration/Xml/Logging/TestDox/Html.php index 8d11a672365..1219a552ef2 100644 --- a/src/TextUI/Configuration/Xml/Logging/TestDox/Html.php +++ b/src/TextUI/Configuration/Xml/Logging/TestDox/Html.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Logging/TestDox/Text.php b/src/TextUI/Configuration/Xml/Logging/TestDox/Text.php index 1950c13e7cd..bdbd3ebf768 100644 --- a/src/TextUI/Configuration/Xml/Logging/TestDox/Text.php +++ b/src/TextUI/Configuration/Xml/Logging/TestDox/Text.php @@ -12,6 +12,8 @@ use PHPUnit\TextUI\Configuration\File; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Migration/MigrationBuilder.php b/src/TextUI/Configuration/Xml/Migration/MigrationBuilder.php index fb7fdaed9e7..662696b50d4 100644 --- a/src/TextUI/Configuration/Xml/Migration/MigrationBuilder.php +++ b/src/TextUI/Configuration/Xml/Migration/MigrationBuilder.php @@ -12,6 +12,8 @@ use function version_compare; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MigrationBuilder diff --git a/src/TextUI/Configuration/Xml/Migration/MigrationBuilderException.php b/src/TextUI/Configuration/Xml/Migration/MigrationBuilderException.php index ebee6e9179b..2b670963532 100644 --- a/src/TextUI/Configuration/Xml/Migration/MigrationBuilderException.php +++ b/src/TextUI/Configuration/Xml/Migration/MigrationBuilderException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MigrationBuilderException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Xml/Migration/MigrationException.php b/src/TextUI/Configuration/Xml/Migration/MigrationException.php index 9fa4068ce5b..bb35aca6817 100644 --- a/src/TextUI/Configuration/Xml/Migration/MigrationException.php +++ b/src/TextUI/Configuration/Xml/Migration/MigrationException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class MigrationException extends RuntimeException implements Exception diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/ConvertLogTypes.php b/src/TextUI/Configuration/Xml/Migration/Migrations/ConvertLogTypes.php index 12c814cb6c0..81a0e322abc 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/ConvertLogTypes.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/ConvertLogTypes.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ConvertLogTypes implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCloverToReport.php b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCloverToReport.php index 73518d1500e..0dfee46fda2 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCloverToReport.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCloverToReport.php @@ -12,6 +12,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class CoverageCloverToReport extends LogToReportMigration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCrap4jToReport.php b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCrap4jToReport.php index 43c39ceea61..f0aac5c7c9b 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCrap4jToReport.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCrap4jToReport.php @@ -12,6 +12,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class CoverageCrap4jToReport extends LogToReportMigration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageHtmlToReport.php b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageHtmlToReport.php index 147c8cf3c1c..f6b7982d98b 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageHtmlToReport.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageHtmlToReport.php @@ -12,6 +12,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class CoverageHtmlToReport extends LogToReportMigration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/CoveragePhpToReport.php b/src/TextUI/Configuration/Xml/Migration/Migrations/CoveragePhpToReport.php index 4920dcf89e9..7e362708b3e 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/CoveragePhpToReport.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/CoveragePhpToReport.php @@ -12,6 +12,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class CoveragePhpToReport extends LogToReportMigration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageTextToReport.php b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageTextToReport.php index 4e0f7aa7ca0..d463cef8d45 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageTextToReport.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageTextToReport.php @@ -12,6 +12,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class CoverageTextToReport extends LogToReportMigration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageXmlToReport.php b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageXmlToReport.php index 716ba5154dd..3db89974215 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageXmlToReport.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/CoverageXmlToReport.php @@ -12,6 +12,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class CoverageXmlToReport extends LogToReportMigration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCacheDirectoryAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCacheDirectoryAttribute.php index ad5291c403e..87624cc6dec 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCacheDirectoryAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCacheDirectoryAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class IntroduceCacheDirectoryAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCoverageElement.php b/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCoverageElement.php index e85a75636bd..9334c1f43f4 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCoverageElement.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCoverageElement.php @@ -12,6 +12,8 @@ use DOMDocument; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class IntroduceCoverageElement implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/LogToReportMigration.php b/src/TextUI/Configuration/Xml/Migration/Migrations/LogToReportMigration.php index a7ef3e55c68..4cdf026a835 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/LogToReportMigration.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/LogToReportMigration.php @@ -15,6 +15,8 @@ use DOMXPath; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class LogToReportMigration implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/Migration.php b/src/TextUI/Configuration/Xml/Migration/Migrations/Migration.php index fa4092a9fe7..05359a2d082 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/Migration.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/Migration.php @@ -12,6 +12,8 @@ use DOMDocument; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ interface Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php index 042344ffe78..2fe4d204961 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MoveAttributesFromFilterWhitelistToCoverage implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromRootToCoverage.php b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromRootToCoverage.php index 0d7d1b59fd0..f0e47b90fe4 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromRootToCoverage.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromRootToCoverage.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MoveAttributesFromRootToCoverage implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveCoverageDirectoriesToSource.php b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveCoverageDirectoriesToSource.php index 227bf9a0b19..18fcce8c8d1 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveCoverageDirectoriesToSource.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveCoverageDirectoriesToSource.php @@ -15,6 +15,8 @@ use DOMXPath; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MoveCoverageDirectoriesToSource implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistExcludesToCoverage.php b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistExcludesToCoverage.php index 630e9dd4ca0..09641bb13b7 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistExcludesToCoverage.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistExcludesToCoverage.php @@ -15,6 +15,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MoveWhitelistExcludesToCoverage implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistIncludesToCoverage.php b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistIncludesToCoverage.php index 9d4c1b81404..9990124963d 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistIncludesToCoverage.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistIncludesToCoverage.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class MoveWhitelistIncludesToCoverage implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutResourceUsageDuringSmallTestsAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutResourceUsageDuringSmallTestsAttribute.php index 8f37d2b9393..cdb90775cd9 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutResourceUsageDuringSmallTestsAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutResourceUsageDuringSmallTestsAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveBeStrictAboutResourceUsageDuringSmallTestsAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutTodoAnnotatedTestsAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutTodoAnnotatedTestsAttribute.php index 7a2d098dac1..1858e67f42b 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutTodoAnnotatedTestsAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutTodoAnnotatedTestsAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveBeStrictAboutTodoAnnotatedTestsAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheResultFileAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheResultFileAttribute.php index 216381926a1..a5c51c4ebc3 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheResultFileAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheResultFileAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveCacheResultFileAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheTokensAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheTokensAttribute.php index 714aafaf585..69bf38a21f3 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheTokensAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheTokensAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveCacheTokensAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveConversionToExceptionsAttributes.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveConversionToExceptionsAttributes.php index 456e03f8500..a908aee381f 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveConversionToExceptionsAttributes.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveConversionToExceptionsAttributes.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveConversionToExceptionsAttributes implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementCacheDirectoryAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementCacheDirectoryAttribute.php index ac7567e20ec..c26d2071c72 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementCacheDirectoryAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementCacheDirectoryAttribute.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveCoverageElementCacheDirectoryAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementProcessUncoveredFilesAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementProcessUncoveredFilesAttribute.php index 1f81b44055e..34768625101 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementProcessUncoveredFilesAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementProcessUncoveredFilesAttribute.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveCoverageElementProcessUncoveredFilesAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveEmptyFilter.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveEmptyFilter.php index ed8f200e9bc..a831e205109 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveEmptyFilter.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveEmptyFilter.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveEmptyFilter implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveListeners.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveListeners.php index 57773b6e1ec..bf2889965de 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveListeners.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveListeners.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveListeners implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLogTypes.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLogTypes.php index 90b1075821c..46ee55e925b 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLogTypes.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLogTypes.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveLogTypes implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLoggingElements.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLoggingElements.php index a4aade4e8aa..9aec2247535 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLoggingElements.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLoggingElements.php @@ -14,6 +14,8 @@ use DOMXPath; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveLoggingElements implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveNoInteractionAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveNoInteractionAttribute.php index 6813c40aae4..897cccd81bd 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveNoInteractionAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveNoInteractionAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveNoInteractionAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemovePrinterAttributes.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemovePrinterAttributes.php index 72b44b6f571..84f4bcf1add 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemovePrinterAttributes.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemovePrinterAttributes.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemovePrinterAttributes implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute.php index a674a804514..e2ff30514f9 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestDoxGroupsElement.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestDoxGroupsElement.php index f3b77c6985c..ea5a69217be 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestDoxGroupsElement.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestDoxGroupsElement.php @@ -13,6 +13,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveTestDoxGroupsElement implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestSuiteLoaderAttributes.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestSuiteLoaderAttributes.php index 771db7f5dc6..284dda2ef88 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestSuiteLoaderAttributes.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestSuiteLoaderAttributes.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveTestSuiteLoaderAttributes implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveVerboseAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveVerboseAttribute.php index 8dcbd67bd9d..d4aa66087bb 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveVerboseAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RemoveVerboseAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RemoveVerboseAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBackupStaticAttributesAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBackupStaticAttributesAttribute.php index f366367ffec..c2de95ce38c 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBackupStaticAttributesAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBackupStaticAttributesAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RenameBackupStaticAttributesAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBeStrictAboutCoversAnnotationAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBeStrictAboutCoversAnnotationAttribute.php index 1a1a60fd9d6..dda890b66cb 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBeStrictAboutCoversAnnotationAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RenameBeStrictAboutCoversAnnotationAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RenameBeStrictAboutCoversAnnotationAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/RenameForceCoversAnnotationAttribute.php b/src/TextUI/Configuration/Xml/Migration/Migrations/RenameForceCoversAnnotationAttribute.php index 88c9058153e..707aff8a368 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/RenameForceCoversAnnotationAttribute.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/RenameForceCoversAnnotationAttribute.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class RenameForceCoversAnnotationAttribute implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/ReplaceRestrictDeprecationsWithIgnoreDeprecations.php b/src/TextUI/Configuration/Xml/Migration/Migrations/ReplaceRestrictDeprecationsWithIgnoreDeprecations.php index 50ec6c55dfd..12cb1e7f087 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/ReplaceRestrictDeprecationsWithIgnoreDeprecations.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/ReplaceRestrictDeprecationsWithIgnoreDeprecations.php @@ -14,6 +14,8 @@ use DOMElement; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ReplaceRestrictDeprecationsWithIgnoreDeprecations implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrations/UpdateSchemaLocation.php b/src/TextUI/Configuration/Xml/Migration/Migrations/UpdateSchemaLocation.php index d19c553254e..8606578abbf 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrations/UpdateSchemaLocation.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrations/UpdateSchemaLocation.php @@ -15,6 +15,8 @@ use PHPUnit\Runner\Version; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class UpdateSchemaLocation implements Migration diff --git a/src/TextUI/Configuration/Xml/Migration/Migrator.php b/src/TextUI/Configuration/Xml/Migration/Migrator.php index 7fc6dcdce4b..e7f48b44492 100644 --- a/src/TextUI/Configuration/Xml/Migration/Migrator.php +++ b/src/TextUI/Configuration/Xml/Migration/Migrator.php @@ -14,6 +14,8 @@ use PHPUnit\Util\Xml\XmlException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Migrator diff --git a/src/TextUI/Configuration/Xml/Migration/SnapshotNodeList.php b/src/TextUI/Configuration/Xml/Migration/SnapshotNodeList.php index a760c3f2da4..c87d0546811 100644 --- a/src/TextUI/Configuration/Xml/Migration/SnapshotNodeList.php +++ b/src/TextUI/Configuration/Xml/Migration/SnapshotNodeList.php @@ -17,6 +17,8 @@ use IteratorAggregate; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @template-implements IteratorAggregate diff --git a/src/TextUI/Configuration/Xml/PHPUnit.php b/src/TextUI/Configuration/Xml/PHPUnit.php index bc74ce052a1..c2fa329fc10 100644 --- a/src/TextUI/Configuration/Xml/PHPUnit.php +++ b/src/TextUI/Configuration/Xml/PHPUnit.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\XmlConfiguration; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/SchemaDetector/FailedSchemaDetectionResult.php b/src/TextUI/Configuration/Xml/SchemaDetector/FailedSchemaDetectionResult.php index 6b859d03e13..dadd6610664 100644 --- a/src/TextUI/Configuration/Xml/SchemaDetector/FailedSchemaDetectionResult.php +++ b/src/TextUI/Configuration/Xml/SchemaDetector/FailedSchemaDetectionResult.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\XmlConfiguration; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetectionResult.php b/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetectionResult.php index e88440b2495..ff52c5ee63e 100644 --- a/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetectionResult.php +++ b/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetectionResult.php @@ -12,6 +12,8 @@ use PHPUnit\Util\Xml\XmlException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetector.php b/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetector.php index 695fd977972..5f55f5f2016 100644 --- a/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetector.php +++ b/src/TextUI/Configuration/Xml/SchemaDetector/SchemaDetector.php @@ -13,6 +13,8 @@ use PHPUnit\Util\Xml\XmlException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class SchemaDetector diff --git a/src/TextUI/Configuration/Xml/SchemaDetector/SuccessfulSchemaDetectionResult.php b/src/TextUI/Configuration/Xml/SchemaDetector/SuccessfulSchemaDetectionResult.php index bc6bb2a918b..6c0ab7e3e64 100644 --- a/src/TextUI/Configuration/Xml/SchemaDetector/SuccessfulSchemaDetectionResult.php +++ b/src/TextUI/Configuration/Xml/SchemaDetector/SuccessfulSchemaDetectionResult.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\XmlConfiguration; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/SchemaFinder.php b/src/TextUI/Configuration/Xml/SchemaFinder.php index 062f6789201..b34d6dcabe2 100644 --- a/src/TextUI/Configuration/Xml/SchemaFinder.php +++ b/src/TextUI/Configuration/Xml/SchemaFinder.php @@ -18,6 +18,8 @@ use PHPUnit\Runner\Version; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class SchemaFinder diff --git a/src/TextUI/Configuration/Xml/TestSuiteMapper.php b/src/TextUI/Configuration/Xml/TestSuiteMapper.php index 8cebed05701..bf0a846ab7c 100644 --- a/src/TextUI/Configuration/Xml/TestSuiteMapper.php +++ b/src/TextUI/Configuration/Xml/TestSuiteMapper.php @@ -27,6 +27,8 @@ use SebastianBergmann\FileIterator\Facade; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteMapper diff --git a/src/TextUI/Configuration/Xml/Validator/ValidationResult.php b/src/TextUI/Configuration/Xml/Validator/ValidationResult.php index fa3c35b9898..a1c88b043cf 100644 --- a/src/TextUI/Configuration/Xml/Validator/ValidationResult.php +++ b/src/TextUI/Configuration/Xml/Validator/ValidationResult.php @@ -9,11 +9,14 @@ */ namespace PHPUnit\TextUI\XmlConfiguration; +use const PHP_EOL; use function sprintf; use function trim; use LibXMLError; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @psalm-immutable diff --git a/src/TextUI/Configuration/Xml/Validator/Validator.php b/src/TextUI/Configuration/Xml/Validator/Validator.php index 0d387fc7db1..35546412607 100644 --- a/src/TextUI/Configuration/Xml/Validator/Validator.php +++ b/src/TextUI/Configuration/Xml/Validator/Validator.php @@ -16,6 +16,8 @@ use DOMDocument; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Validator diff --git a/src/TextUI/Exception/CannotOpenSocketException.php b/src/TextUI/Exception/CannotOpenSocketException.php index 68573830191..519d1378568 100644 --- a/src/TextUI/Exception/CannotOpenSocketException.php +++ b/src/TextUI/Exception/CannotOpenSocketException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class CannotOpenSocketException extends RuntimeException implements Exception diff --git a/src/TextUI/Exception/Exception.php b/src/TextUI/Exception/Exception.php index ee2ae4ffa90..6b370ca0760 100644 --- a/src/TextUI/Exception/Exception.php +++ b/src/TextUI/Exception/Exception.php @@ -12,6 +12,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface Exception extends Throwable diff --git a/src/TextUI/Exception/ExtensionsNotConfiguredException.php b/src/TextUI/Exception/ExtensionsNotConfiguredException.php index c192e7535a2..40cfe3f0753 100644 --- a/src/TextUI/Exception/ExtensionsNotConfiguredException.php +++ b/src/TextUI/Exception/ExtensionsNotConfiguredException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExtensionsNotConfiguredException extends RuntimeException implements Exception diff --git a/src/TextUI/Exception/InvalidSocketException.php b/src/TextUI/Exception/InvalidSocketException.php index 6c9e9216695..441afd2a1ed 100644 --- a/src/TextUI/Exception/InvalidSocketException.php +++ b/src/TextUI/Exception/InvalidSocketException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidSocketException extends RuntimeException implements Exception diff --git a/src/TextUI/Exception/ReflectionException.php b/src/TextUI/Exception/ReflectionException.php index 5e041444443..7c5541ba594 100644 --- a/src/TextUI/Exception/ReflectionException.php +++ b/src/TextUI/Exception/ReflectionException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ReflectionException extends RuntimeException implements Exception diff --git a/src/TextUI/Exception/RuntimeException.php b/src/TextUI/Exception/RuntimeException.php index 619023190db..875a0487c8c 100644 --- a/src/TextUI/Exception/RuntimeException.php +++ b/src/TextUI/Exception/RuntimeException.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class RuntimeException extends \RuntimeException implements Exception diff --git a/src/TextUI/Exception/TestDirectoryNotFoundException.php b/src/TextUI/Exception/TestDirectoryNotFoundException.php index da15966c6ba..9b35390cdab 100644 --- a/src/TextUI/Exception/TestDirectoryNotFoundException.php +++ b/src/TextUI/Exception/TestDirectoryNotFoundException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestDirectoryNotFoundException extends RuntimeException implements Exception diff --git a/src/TextUI/Exception/TestFileNotFoundException.php b/src/TextUI/Exception/TestFileNotFoundException.php index 247690d06b8..46c9df80671 100644 --- a/src/TextUI/Exception/TestFileNotFoundException.php +++ b/src/TextUI/Exception/TestFileNotFoundException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestFileNotFoundException extends RuntimeException implements Exception diff --git a/src/TextUI/Help.php b/src/TextUI/Help.php index cfe46371b3b..edf6bc50517 100644 --- a/src/TextUI/Help.php +++ b/src/TextUI/Help.php @@ -23,6 +23,8 @@ use SebastianBergmann\Environment\Console; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Help diff --git a/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php b/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php index e020a2b1995..479cbe6d50c 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php +++ b/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php @@ -33,6 +33,8 @@ use PHPUnit\Util\Color; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ProgressPrinter diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/BeforeTestClassMethodErroredSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/BeforeTestClassMethodErroredSubscriber.php index 011856369ec..2984cdda8b7 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/BeforeTestClassMethodErroredSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/BeforeTestClassMethodErroredSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\BeforeFirstTestMethodErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class BeforeTestClassMethodErroredSubscriber extends Subscriber implements BeforeFirstTestMethodErroredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/Subscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/Subscriber.php index b7d9bc89fec..32515ee343c 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/Subscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/Subscriber.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Output\Default\ProgressPrinter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract readonly class Subscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestConsideredRiskySubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestConsideredRiskySubscriber.php index 4439a4edab8..e5b57c6d3d6 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestConsideredRiskySubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestConsideredRiskySubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ConsideredRiskySubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestErroredSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestErroredSubscriber.php index 4f53c100db5..33340755261 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestErroredSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestErroredSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ErroredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFailedSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFailedSubscriber.php index dd7ea5d00e5..9109d1b312b 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFailedSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFailedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\FailedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFinishedSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFinishedSubscriber.php index 150c21e8fab..e4b4ca5ee87 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFinishedSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFinishedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\FinishedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestMarkedIncompleteSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestMarkedIncompleteSubscriber.php index 4aeb37e3eec..8b445088064 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestMarkedIncompleteSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestMarkedIncompleteSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\MarkedIncompleteSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestPreparedSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestPreparedSubscriber.php index ce400425acb..d99f2fa4190 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestPreparedSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestPreparedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PreparedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestRunnerExecutionStartedSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestRunnerExecutionStartedSubscriber.php index 4555cdfb2fb..78e104f6d46 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestRunnerExecutionStartedSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestRunnerExecutionStartedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\TestRunner\ExecutionStartedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestRunnerExecutionStartedSubscriber extends Subscriber implements ExecutionStartedSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php index 2288d971272..a2f4e25569b 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\SkippedSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredDeprecationSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredDeprecationSubscriber.php index a1cdbd5b887..16a4ccf96ec 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredDeprecationSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\DeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredErrorSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredErrorSubscriber.php index 6a32f778a4d..1f89911b45e 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredErrorSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredErrorSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\ErrorTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredErrorSubscriber extends Subscriber implements ErrorTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredNoticeSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredNoticeSubscriber.php index e76f3b9bbfb..0639f027272 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredNoticeSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredNoticeSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\NoticeTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpDeprecationSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpDeprecationSubscriber.php index 03657fc31b1..550250c2100 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpDeprecationSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpDeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpNoticeSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpNoticeSubscriber.php index 8c496b3b558..299b898c076 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpNoticeSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpNoticeSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpNoticeTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpWarningSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpWarningSubscriber.php index 5472866cea7..a4ff81c2276 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpWarningSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpWarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php index 889672fb3d5..62311a0123a 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitDeprecationTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitDeprecationSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitWarningSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitWarningSubscriber.php index b0175e1c39a..4e3e3d21cef 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitWarningSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\PhpunitWarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpunitWarningSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredWarningSubscriber.php b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredWarningSubscriber.php index 6a388d81edc..620458422dd 100644 --- a/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredWarningSubscriber.php +++ b/src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredWarningSubscriber.php @@ -13,6 +13,8 @@ use PHPUnit\Event\Test\WarningTriggeredSubscriber; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber diff --git a/src/TextUI/Output/Default/ResultPrinter.php b/src/TextUI/Output/Default/ResultPrinter.php index ea01b509803..2d7f7bbdf45 100644 --- a/src/TextUI/Output/Default/ResultPrinter.php +++ b/src/TextUI/Output/Default/ResultPrinter.php @@ -43,6 +43,8 @@ use PHPUnit\TextUI\Output\Printer; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ResultPrinter diff --git a/src/TextUI/Output/Facade.php b/src/TextUI/Output/Facade.php index c050e9b15b9..6572908ac68 100644 --- a/src/TextUI/Output/Facade.php +++ b/src/TextUI/Output/Facade.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Output; +use const PHP_EOL; use function assert; use PHPUnit\Event\EventFacadeIsSealedException; use PHPUnit\Event\Facade as EventFacade; @@ -28,6 +29,8 @@ use SebastianBergmann\Timer\ResourceUsageFormatter; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Facade diff --git a/src/TextUI/Output/Printer/DefaultPrinter.php b/src/TextUI/Output/Printer/DefaultPrinter.php index 2396979b162..38f3b2b52e9 100644 --- a/src/TextUI/Output/Printer/DefaultPrinter.php +++ b/src/TextUI/Output/Printer/DefaultPrinter.php @@ -25,6 +25,8 @@ use PHPUnit\Util\Filesystem; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DefaultPrinter implements Printer diff --git a/src/TextUI/Output/Printer/NullPrinter.php b/src/TextUI/Output/Printer/NullPrinter.php index dc68f5cf166..5e6b7ddf225 100644 --- a/src/TextUI/Output/Printer/NullPrinter.php +++ b/src/TextUI/Output/Printer/NullPrinter.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Output; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class NullPrinter implements Printer diff --git a/src/TextUI/Output/Printer/Printer.php b/src/TextUI/Output/Printer/Printer.php index bc2e8bb5348..c9b0fb97069 100644 --- a/src/TextUI/Output/Printer/Printer.php +++ b/src/TextUI/Output/Printer/Printer.php @@ -10,6 +10,8 @@ namespace PHPUnit\TextUI\Output; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface Printer diff --git a/src/TextUI/Output/SummaryPrinter.php b/src/TextUI/Output/SummaryPrinter.php index 7168815c63f..aadf7aa4a87 100644 --- a/src/TextUI/Output/SummaryPrinter.php +++ b/src/TextUI/Output/SummaryPrinter.php @@ -9,11 +9,14 @@ */ namespace PHPUnit\TextUI\Output; +use const PHP_EOL; use function sprintf; use PHPUnit\TestRunner\TestResult\TestResult; use PHPUnit\Util\Color; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class SummaryPrinter diff --git a/src/TextUI/Output/TestDox/ResultPrinter.php b/src/TextUI/Output/TestDox/ResultPrinter.php index b9bcb48d72a..90ea0cabe38 100644 --- a/src/TextUI/Output/TestDox/ResultPrinter.php +++ b/src/TextUI/Output/TestDox/ResultPrinter.php @@ -27,6 +27,8 @@ use PHPUnit\Util\Color; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ResultPrinter diff --git a/src/TextUI/ShellExitCodeCalculator.php b/src/TextUI/ShellExitCodeCalculator.php index 02e5b096e8c..d4b42bbe7b2 100644 --- a/src/TextUI/ShellExitCodeCalculator.php +++ b/src/TextUI/ShellExitCodeCalculator.php @@ -12,6 +12,8 @@ use PHPUnit\TestRunner\TestResult\TestResult; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ShellExitCodeCalculator diff --git a/src/TextUI/TestRunner.php b/src/TextUI/TestRunner.php index 724e40415b9..2363ca290b9 100644 --- a/src/TextUI/TestRunner.php +++ b/src/TextUI/TestRunner.php @@ -18,6 +18,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestRunner diff --git a/src/TextUI/TestSuiteFilterProcessor.php b/src/TextUI/TestSuiteFilterProcessor.php index 0a3eecf98db..21365439a98 100644 --- a/src/TextUI/TestSuiteFilterProcessor.php +++ b/src/TextUI/TestSuiteFilterProcessor.php @@ -17,6 +17,8 @@ use PHPUnit\TextUI\Configuration\FilterNotConfiguredException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteFilterProcessor diff --git a/src/Util/Cloner.php b/src/Util/Cloner.php index ae8f141d52d..b3386cf3511 100644 --- a/src/Util/Cloner.php +++ b/src/Util/Cloner.php @@ -12,6 +12,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Cloner diff --git a/src/Util/Color.php b/src/Util/Color.php index 016359dce08..6cf459223a2 100644 --- a/src/Util/Color.php +++ b/src/Util/Color.php @@ -27,6 +27,8 @@ use function trim; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Color diff --git a/src/Util/Exception/Exception.php b/src/Util/Exception/Exception.php index a66f00b0a23..58f42db77f3 100644 --- a/src/Util/Exception/Exception.php +++ b/src/Util/Exception/Exception.php @@ -12,6 +12,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface Exception extends Throwable diff --git a/src/Util/Exception/InvalidDirectoryException.php b/src/Util/Exception/InvalidDirectoryException.php index bdfa84b5438..623af2ded5f 100644 --- a/src/Util/Exception/InvalidDirectoryException.php +++ b/src/Util/Exception/InvalidDirectoryException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidDirectoryException extends RuntimeException implements Exception diff --git a/src/Util/Exception/InvalidJsonException.php b/src/Util/Exception/InvalidJsonException.php index 3d30ce4b881..224f7115c59 100644 --- a/src/Util/Exception/InvalidJsonException.php +++ b/src/Util/Exception/InvalidJsonException.php @@ -12,6 +12,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidJsonException extends RuntimeException implements Exception diff --git a/src/Util/Exception/InvalidVersionOperatorException.php b/src/Util/Exception/InvalidVersionOperatorException.php index 49b50e4be59..bc2fe9a0ed5 100644 --- a/src/Util/Exception/InvalidVersionOperatorException.php +++ b/src/Util/Exception/InvalidVersionOperatorException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class InvalidVersionOperatorException extends RuntimeException implements Exception diff --git a/src/Util/Exception/PhpProcessException.php b/src/Util/Exception/PhpProcessException.php index 0a6b6ee7652..05069ef05ec 100644 --- a/src/Util/Exception/PhpProcessException.php +++ b/src/Util/Exception/PhpProcessException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class PhpProcessException extends RuntimeException implements Exception diff --git a/src/Util/Exception/XmlException.php b/src/Util/Exception/XmlException.php index f2dc45d3787..127e1ecaffe 100644 --- a/src/Util/Exception/XmlException.php +++ b/src/Util/Exception/XmlException.php @@ -13,6 +13,8 @@ use RuntimeException; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class XmlException extends RuntimeException implements Exception diff --git a/src/Util/ExcludeList.php b/src/Util/ExcludeList.php index f0f7f23a09a..88e80ba40f4 100644 --- a/src/Util/ExcludeList.php +++ b/src/Util/ExcludeList.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Util; +use const PHP_OS_FAMILY; use function class_exists; use function defined; use function dirname; diff --git a/src/Util/Filesystem.php b/src/Util/Filesystem.php index 8587512597e..34625bd68f7 100644 --- a/src/Util/Filesystem.php +++ b/src/Util/Filesystem.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Util; +use const DIRECTORY_SEPARATOR; use function basename; use function dirname; use function is_dir; @@ -17,6 +18,8 @@ use function str_starts_with; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Filesystem diff --git a/src/Util/Filter.php b/src/Util/Filter.php index 7d6a0681ab9..4d0d02a0bde 100644 --- a/src/Util/Filter.php +++ b/src/Util/Filter.php @@ -21,6 +21,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Filter diff --git a/src/Util/GlobalState.php b/src/Util/GlobalState.php index 970dc06468c..4b4779534b9 100644 --- a/src/Util/GlobalState.php +++ b/src/Util/GlobalState.php @@ -32,6 +32,8 @@ use Closure; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class GlobalState diff --git a/src/Util/Json.php b/src/Util/Json.php index 54ad403f080..fd95687d40a 100644 --- a/src/Util/Json.php +++ b/src/Util/Json.php @@ -21,6 +21,8 @@ use function ksort; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Json diff --git a/src/Util/PHP/DefaultJobRunner.php b/src/Util/PHP/DefaultJobRunner.php index 6ea96e04f12..bc5a93c8114 100644 --- a/src/Util/PHP/DefaultJobRunner.php +++ b/src/Util/PHP/DefaultJobRunner.php @@ -30,6 +30,8 @@ use SebastianBergmann\Environment\Runtime; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class DefaultJobRunner implements JobRunner diff --git a/src/Util/PHP/Job.php b/src/Util/PHP/Job.php index e9b44dfdc02..d990aa7c162 100644 --- a/src/Util/PHP/Job.php +++ b/src/Util/PHP/Job.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Job diff --git a/src/Util/PHP/JobRunner.php b/src/Util/PHP/JobRunner.php index 33c1af68ec1..3e0494b2985 100644 --- a/src/Util/PHP/JobRunner.php +++ b/src/Util/PHP/JobRunner.php @@ -10,6 +10,8 @@ namespace PHPUnit\Util\PHP; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This interface is not covered by the backward compatibility promise for PHPUnit */ interface JobRunner diff --git a/src/Util/PHP/JobRunnerRegistry.php b/src/Util/PHP/JobRunnerRegistry.php index 04e56e65fef..8cf6804258d 100644 --- a/src/Util/PHP/JobRunnerRegistry.php +++ b/src/Util/PHP/JobRunnerRegistry.php @@ -10,6 +10,8 @@ namespace PHPUnit\Util\PHP; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class JobRunnerRegistry diff --git a/src/Util/PHP/Result.php b/src/Util/PHP/Result.php index e9a7ed5a015..50785b1818c 100644 --- a/src/Util/PHP/Result.php +++ b/src/Util/PHP/Result.php @@ -12,6 +12,8 @@ /** * @psalm-immutable * + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Result diff --git a/src/Util/Reflection.php b/src/Util/Reflection.php index d4199d1e0e7..0272ee71970 100644 --- a/src/Util/Reflection.php +++ b/src/Util/Reflection.php @@ -19,6 +19,8 @@ use ReflectionMethod; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Reflection diff --git a/src/Util/Test.php b/src/Util/Test.php index 6ea94692d8b..b3d9ed54625 100644 --- a/src/Util/Test.php +++ b/src/Util/Test.php @@ -14,6 +14,8 @@ use ReflectionMethod; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Test diff --git a/src/Util/ThrowableToStringMapper.php b/src/Util/ThrowableToStringMapper.php index 9a6f9ccff11..bdc5880ee8d 100644 --- a/src/Util/ThrowableToStringMapper.php +++ b/src/Util/ThrowableToStringMapper.php @@ -17,6 +17,8 @@ use Throwable; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ThrowableToStringMapper diff --git a/src/Util/Xml/Loader.php b/src/Util/Xml/Loader.php index d7992f755c6..1e65ec3ade3 100644 --- a/src/Util/Xml/Loader.php +++ b/src/Util/Xml/Loader.php @@ -17,6 +17,8 @@ use DOMDocument; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Loader diff --git a/src/Util/Xml/Xml.php b/src/Util/Xml/Xml.php index 4bba6d8eca4..5e30bb43b70 100644 --- a/src/Util/Xml/Xml.php +++ b/src/Util/Xml/Xml.php @@ -17,6 +17,8 @@ use function strlen; /** + * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit + * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class Xml diff --git a/tests/_files/mock-object/ExtendableClass.php b/tests/_files/mock-object/ExtendableClass.php index e4c1e1c7137..dbe29c1294e 100644 --- a/tests/_files/mock-object/ExtendableClass.php +++ b/tests/_files/mock-object/ExtendableClass.php @@ -11,6 +11,13 @@ class ExtendableClass { + public bool $constructorCalled = false; + + public function __construct() + { + $this->constructorCalled = true; + } + public function __destruct() { } diff --git a/tests/end-to-end/_files/baseline/generate-baseline-no-baseline-configured/tests/Test.php b/tests/end-to-end/_files/baseline/generate-baseline-no-baseline-configured/tests/Test.php index d9ed86d8a59..98ba8d9e387 100644 --- a/tests/end-to-end/_files/baseline/generate-baseline-no-baseline-configured/tests/Test.php +++ b/tests/end-to-end/_files/baseline/generate-baseline-no-baseline-configured/tests/Test.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Baseline; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/.gitignore b/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/.gitignore new file mode 100644 index 00000000000..8d20d1464c8 --- /dev/null +++ b/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/.gitignore @@ -0,0 +1 @@ +baseline.xml diff --git a/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/phpunit.xml b/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/phpunit.xml new file mode 100644 index 00000000000..460759ebd74 --- /dev/null +++ b/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/phpunit.xml @@ -0,0 +1,21 @@ + + + + + tests + + + + + + diff --git a/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/tests/Test.php b/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/tests/Test.php new file mode 100644 index 00000000000..47e0cc27dc8 --- /dev/null +++ b/tests/end-to-end/_files/baseline/generate-baseline-suppressed-with-ignored-suppression/tests/Test.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace PHPUnit\TestFixture\Baseline; + +use const E_USER_DEPRECATED; +use const E_USER_NOTICE; +use const E_USER_WARNING; +use function trigger_error; +use PHPUnit\Framework\TestCase; +use Serializable; + +final class Test extends TestCase +{ + public function testDeprecation(): void + { + @trigger_error('deprecation', E_USER_DEPRECATED); + + $this->assertTrue(true); + } + + public function testNotice(): void + { + @trigger_error('notice', E_USER_NOTICE); + + $this->assertTrue(true); + } + + public function testWarning(): void + { + @trigger_error('warning', E_USER_WARNING); + + $this->assertTrue(true); + } + + public function testPhpDeprecation(): void + { + @$o = new class implements Serializable + { + public function serialize(): void + { + } + + public function unserialize(string $data): void + { + } + }; + + $this->assertTrue(true); + } + + public function testPhpNoticeAndWarning(): void + { + $o = new class + { + public static $a = 'b'; + }; + + @$o->a; + + $this->assertTrue(true); + } +} diff --git a/tests/end-to-end/_files/baseline/generate-baseline-suppressed/.gitignore b/tests/end-to-end/_files/baseline/generate-baseline-suppressed/.gitignore new file mode 100644 index 00000000000..8d20d1464c8 --- /dev/null +++ b/tests/end-to-end/_files/baseline/generate-baseline-suppressed/.gitignore @@ -0,0 +1 @@ +baseline.xml diff --git a/tests/end-to-end/_files/baseline/generate-baseline-suppressed/phpunit.xml b/tests/end-to-end/_files/baseline/generate-baseline-suppressed/phpunit.xml new file mode 100644 index 00000000000..bf0ee15c129 --- /dev/null +++ b/tests/end-to-end/_files/baseline/generate-baseline-suppressed/phpunit.xml @@ -0,0 +1,14 @@ + + + + + tests + + + + + + diff --git a/tests/end-to-end/_files/baseline/generate-baseline-suppressed/tests/Test.php b/tests/end-to-end/_files/baseline/generate-baseline-suppressed/tests/Test.php new file mode 100644 index 00000000000..47e0cc27dc8 --- /dev/null +++ b/tests/end-to-end/_files/baseline/generate-baseline-suppressed/tests/Test.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace PHPUnit\TestFixture\Baseline; + +use const E_USER_DEPRECATED; +use const E_USER_NOTICE; +use const E_USER_WARNING; +use function trigger_error; +use PHPUnit\Framework\TestCase; +use Serializable; + +final class Test extends TestCase +{ + public function testDeprecation(): void + { + @trigger_error('deprecation', E_USER_DEPRECATED); + + $this->assertTrue(true); + } + + public function testNotice(): void + { + @trigger_error('notice', E_USER_NOTICE); + + $this->assertTrue(true); + } + + public function testWarning(): void + { + @trigger_error('warning', E_USER_WARNING); + + $this->assertTrue(true); + } + + public function testPhpDeprecation(): void + { + @$o = new class implements Serializable + { + public function serialize(): void + { + } + + public function unserialize(string $data): void + { + } + }; + + $this->assertTrue(true); + } + + public function testPhpNoticeAndWarning(): void + { + $o = new class + { + public static $a = 'b'; + }; + + @$o->a; + + $this->assertTrue(true); + } +} diff --git a/tests/end-to-end/_files/baseline/generate-baseline/tests/Test.php b/tests/end-to-end/_files/baseline/generate-baseline/tests/Test.php index d9ed86d8a59..385cb9f6717 100644 --- a/tests/end-to-end/_files/baseline/generate-baseline/tests/Test.php +++ b/tests/end-to-end/_files/baseline/generate-baseline/tests/Test.php @@ -9,15 +9,61 @@ */ namespace PHPUnit\TestFixture\Baseline; +use const E_USER_DEPRECATED; +use const E_USER_NOTICE; +use const E_USER_WARNING; use function trigger_error; use PHPUnit\Framework\TestCase; +use Serializable; final class Test extends TestCase { - public function testOne(): void + public function testDeprecation(): void { trigger_error('deprecation', E_USER_DEPRECATED); $this->assertTrue(true); } + + public function testNotice(): void + { + trigger_error('notice', E_USER_NOTICE); + + $this->assertTrue(true); + } + + public function testWarning(): void + { + trigger_error('warning', E_USER_WARNING); + + $this->assertTrue(true); + } + + public function testPhpDeprecation(): void + { + $o = new class implements Serializable + { + public function serialize(): void + { + } + + public function unserialize(string $data): void + { + } + }; + + $this->assertTrue(true); + } + + public function testPhpNoticeAndWarning(): void + { + $o = new class + { + public static $a = 'b'; + }; + + $o->a; + + $this->assertTrue(true); + } } diff --git a/tests/end-to-end/_files/baseline/invalid-baseline/tests/Test.php b/tests/end-to-end/_files/baseline/invalid-baseline/tests/Test.php index d9ed86d8a59..98ba8d9e387 100644 --- a/tests/end-to-end/_files/baseline/invalid-baseline/tests/Test.php +++ b/tests/end-to-end/_files/baseline/invalid-baseline/tests/Test.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Baseline; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/_files/baseline/unsupported-baseline/tests/Test.php b/tests/end-to-end/_files/baseline/unsupported-baseline/tests/Test.php index d9ed86d8a59..98ba8d9e387 100644 --- a/tests/end-to-end/_files/baseline/unsupported-baseline/tests/Test.php +++ b/tests/end-to-end/_files/baseline/unsupported-baseline/tests/Test.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Baseline; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/_files/baseline/use-baseline/baseline.xml b/tests/end-to-end/_files/baseline/use-baseline/baseline.xml index 54457526106..194ec72508e 100644 --- a/tests/end-to-end/_files/baseline/use-baseline/baseline.xml +++ b/tests/end-to-end/_files/baseline/use-baseline/baseline.xml @@ -1,7 +1,7 @@ - + diff --git a/tests/end-to-end/_files/baseline/use-baseline/tests/Test.php b/tests/end-to-end/_files/baseline/use-baseline/tests/Test.php index d9ed86d8a59..98ba8d9e387 100644 --- a/tests/end-to-end/_files/baseline/use-baseline/tests/Test.php +++ b/tests/end-to-end/_files/baseline/use-baseline/tests/Test.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Baseline; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/_files/phar-extension/phpunit.xml b/tests/end-to-end/_files/phar-extension/phpunit.xml index b8f869079ba..6fe1bb5596c 100644 --- a/tests/end-to-end/_files/phar-extension/phpunit.xml +++ b/tests/end-to-end/_files/phar-extension/phpunit.xml @@ -1,6 +1,6 @@ diff --git a/tests/end-to-end/_files/stop-on-fail-on/DeprecationTest.php b/tests/end-to-end/_files/stop-on-fail-on/DeprecationTest.php index 796bfa5325e..36512e8813c 100644 --- a/tests/end-to-end/_files/stop-on-fail-on/DeprecationTest.php +++ b/tests/end-to-end/_files/stop-on-fail-on/DeprecationTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\TestRunnerStopping; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/_files/stop-on-fail-on/NoticeTest.php b/tests/end-to-end/_files/stop-on-fail-on/NoticeTest.php index 0ab4a4a26ac..aa86486f51e 100644 --- a/tests/end-to-end/_files/stop-on-fail-on/NoticeTest.php +++ b/tests/end-to-end/_files/stop-on-fail-on/NoticeTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\TestRunnerStopping; +use const E_USER_NOTICE; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/_files/stop-on-fail-on/WarningTest.php b/tests/end-to-end/_files/stop-on-fail-on/WarningTest.php index 444eb346043..4b77ac2cbe2 100644 --- a/tests/end-to-end/_files/stop-on-fail-on/WarningTest.php +++ b/tests/end-to-end/_files/stop-on-fail-on/WarningTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\TestRunnerStopping; +use const E_USER_WARNING; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/baseline/generate-baseline-suppressed-with-ignored-suppression.phpt b/tests/end-to-end/baseline/generate-baseline-suppressed-with-ignored-suppression.phpt new file mode 100644 index 00000000000..af54b50723b --- /dev/null +++ b/tests/end-to-end/baseline/generate-baseline-suppressed-with-ignored-suppression.phpt @@ -0,0 +1,56 @@ +--TEST-- +phpunit --configuration ../_files/baseline/generate-baseline-suppressed-with-ignored-suppression/phpunit.xml --generate-baseline +--FILE-- +run($_SERVER['argv']); + +print file_get_contents($baseline); + +@unlink($baseline); +--EXPECTF-- +PHPUnit %s by Sebastian Bergmann and contributors. + +Runtime: %s +Configuration: %s + +DNWDW 5 / 5 (100%) + +Time: %s, Memory: %s + +OK, but there were issues! +Tests: 5, Assertions: 5, Warnings: 2, Deprecations: 2, Notices: 2. + +Baseline written to %sbaseline.xml. + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/end-to-end/baseline/generate-baseline-suppressed.phpt b/tests/end-to-end/baseline/generate-baseline-suppressed.phpt new file mode 100644 index 00000000000..183581c4266 --- /dev/null +++ b/tests/end-to-end/baseline/generate-baseline-suppressed.phpt @@ -0,0 +1,36 @@ +--TEST-- +phpunit --configuration ../_files/baseline/generate-baseline-suppressed/phpunit.xml --generate-baseline +--FILE-- +run($_SERVER['argv']); + +print file_get_contents($baseline); + +@unlink($baseline); +--EXPECTF-- +PHPUnit %s by Sebastian Bergmann and contributors. + +Runtime: %s +Configuration: %s + +..... 5 / 5 (100%) + +Time: %s, Memory: %s + +OK (5 tests, 5 assertions) + +Baseline written to %sbaseline.xml. + + diff --git a/tests/end-to-end/baseline/generate-baseline.phpt b/tests/end-to-end/baseline/generate-baseline.phpt index 70b6db3e955..7964d6fbf3a 100644 --- a/tests/end-to-end/baseline/generate-baseline.phpt +++ b/tests/end-to-end/baseline/generate-baseline.phpt @@ -8,7 +8,6 @@ $baseline = realpath($baseline); @unlink($baseline); $_SERVER['argv'][] = '--do-not-cache-result'; -$_SERVER['argv'][] = '--display-deprecations'; $_SERVER['argv'][] = '--generate-baseline'; $_SERVER['argv'][] = $baseline; $_SERVER['argv'][] = '--configuration'; @@ -26,29 +25,32 @@ PHPUnit %s by Sebastian Bergmann and contributors. Runtime: %s Configuration: %s -D 1 / 1 (100%) +DNWDW 5 / 5 (100%) Time: %s, Memory: %s -1 test triggered 1 deprecation: - -1) %sTest.php:%d -deprecation - -Triggered by: - -* PHPUnit\TestFixture\Baseline\Test::testOne - %sTest.php:%d - OK, but there were issues! -Tests: 1, Assertions: 1, Deprecations: 1. +Tests: 5, Assertions: 5, Warnings: 2, Deprecations: 2, Notices: 2. Baseline written to %sbaseline.xml. - + + + + + + + + + + + + + + diff --git a/tests/end-to-end/cli/group/covers-csv.phpt b/tests/end-to-end/cli/group/covers-csv.phpt new file mode 100644 index 00000000000..635e77968f9 --- /dev/null +++ b/tests/end-to-end/cli/group/covers-csv.phpt @@ -0,0 +1,43 @@ +--TEST-- +phpunit --covers PHPUnit\TestFixture\CoversUsesFiltering\Foo +--FILE-- +run($_SERVER['argv']); + +print file_get_contents($traceFile); + +unlink($traceFile); +--EXPECTF-- +PHPUnit Started (PHPUnit %s using %s) +Test Runner Triggered Warning (Using comma-separated values with --covers is deprecated and will no longer work in PHPUnit 12. You can use --covers multiple times instead.) +Test Runner Configured +Test Suite Loaded (2 tests) +Event Facade Sealed +Test Runner Started +Test Suite Sorted +Test Suite Filtered (1 test) +Test Runner Execution Started (1 test) +Test Suite Started (CLI Arguments, 1 test) +Test Suite Started (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest, 1 test) +Test Preparation Started (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) +Test Prepared (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) +Test Passed (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) +Test Finished (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest::testOne) +Test Suite Finished (PHPUnit\TestFixture\CoversUsesFiltering\CoversTest, 1 test) +Test Suite Finished (CLI Arguments, 1 test) +Test Runner Execution Finished +Test Runner Finished +PHPUnit Finished (Shell Exit Code: 1) diff --git a/tests/end-to-end/cli/group/uses-csv.phpt b/tests/end-to-end/cli/group/uses-csv.phpt new file mode 100644 index 00000000000..13d72f0e2a9 --- /dev/null +++ b/tests/end-to-end/cli/group/uses-csv.phpt @@ -0,0 +1,43 @@ +--TEST-- +phpunit --uses PHPUnit\TestFixture\CoversUsesFiltering\Foo +--FILE-- +run($_SERVER['argv']); + +print file_get_contents($traceFile); + +unlink($traceFile); +--EXPECTF-- +PHPUnit Started (PHPUnit %s using %s) +Test Runner Triggered Warning (Using comma-separated values with --uses is deprecated and will no longer work in PHPUnit 12. You can use --uses multiple times instead.) +Test Runner Configured +Test Suite Loaded (2 tests) +Event Facade Sealed +Test Runner Started +Test Suite Sorted +Test Suite Filtered (1 test) +Test Runner Execution Started (1 test) +Test Suite Started (CLI Arguments, 1 test) +Test Suite Started (PHPUnit\TestFixture\CoversUsesFiltering\UsesTest, 1 test) +Test Preparation Started (PHPUnit\TestFixture\CoversUsesFiltering\UsesTest::testOne) +Test Prepared (PHPUnit\TestFixture\CoversUsesFiltering\UsesTest::testOne) +Test Passed (PHPUnit\TestFixture\CoversUsesFiltering\UsesTest::testOne) +Test Finished (PHPUnit\TestFixture\CoversUsesFiltering\UsesTest::testOne) +Test Suite Finished (PHPUnit\TestFixture\CoversUsesFiltering\UsesTest, 1 test) +Test Suite Finished (CLI Arguments, 1 test) +Test Runner Execution Finished +Test Runner Finished +PHPUnit Finished (Shell Exit Code: 1) diff --git a/tests/end-to-end/cli/list-test-files/list-phpt-test-files.phpt b/tests/end-to-end/cli/list-test-files/list-phpt-test-files.phpt deleted file mode 100644 index f0ff205f181..00000000000 --- a/tests/end-to-end/cli/list-test-files/list-phpt-test-files.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -phpunit --list-test-files list-phpt-test-files.phpt ---FILE-- -run($_SERVER['argv']); ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann and contributors. - -Available test files: - - %send-to-end%slist-phpt-test-files.phpt diff --git a/tests/end-to-end/cli/list-test-files/list-test-files-exclude-group.phpt b/tests/end-to-end/cli/list-test-files/list-test-files-exclude-group.phpt index dce6488129f..f6a2a36e873 100644 --- a/tests/end-to-end/cli/list-test-files/list-test-files-exclude-group.phpt +++ b/tests/end-to-end/cli/list-test-files/list-test-files-exclude-group.phpt @@ -1,12 +1,12 @@ --TEST-- -phpunit --list-test-files --exclude-group group ../../../_files/Metadata/Attribute/tests/GroupTest.php +phpunit --list-test-files --exclude-group one ../../_files/listing-tests-and-groups --FILE-- run($_SERVER['argv']); @@ -14,3 +14,5 @@ require_once __DIR__ . '/../../../bootstrap.php'; PHPUnit %s by Sebastian Bergmann and contributors. Available test files: + - %slisting-tests-and-groups%sExampleTest.php + - %slisting-tests-and-groups%sexample.phpt diff --git a/tests/end-to-end/cli/list-test-files/list-test-files-group.phpt b/tests/end-to-end/cli/list-test-files/list-test-files-group.phpt index fe524c368d6..851eff96586 100644 --- a/tests/end-to-end/cli/list-test-files/list-test-files-group.phpt +++ b/tests/end-to-end/cli/list-test-files/list-test-files-group.phpt @@ -1,12 +1,12 @@ --TEST-- -phpunit --list-test-files --group group ../../../_files/Metadata/Attribute/tests/ +phpunit --list-test-files --group one ../../_files/listing-tests-and-groups --FILE-- run($_SERVER['argv']); @@ -14,4 +14,4 @@ require_once __DIR__ . '/../../../bootstrap.php'; PHPUnit %s by Sebastian Bergmann and contributors. Available test files: - - %Attribute%sGroupTest.php + - %slisting-tests-and-groups%sExampleTest.php diff --git a/tests/end-to-end/cli/list-test-files/list-test-files.phpt b/tests/end-to-end/cli/list-test-files/list-test-files.phpt index ce51dd7768e..7ef216de7bf 100644 --- a/tests/end-to-end/cli/list-test-files/list-test-files.phpt +++ b/tests/end-to-end/cli/list-test-files/list-test-files.phpt @@ -1,11 +1,10 @@ --TEST-- -phpunit --list-test-files --configuration ../../../_files/basic/configuration.basic.xml +phpunit --list-test-files ../../_files/listing-tests-and-groups --FILE-- run($_SERVER['argv']); @@ -13,7 +12,5 @@ require_once __DIR__ . '/../../../bootstrap.php'; PHPUnit %s by Sebastian Bergmann and contributors. Available test files: - - %send-to-end%sSetUpBeforeClassTest.php - - %send-to-end%sSetUpTest.php - - %send-to-end%sStatusTest.php - - %send-to-end%sTearDownAfterClassTest.php + - %slisting-tests-and-groups%sExampleTest.php + - %slisting-tests-and-groups%sexample.phpt diff --git a/tests/end-to-end/event/_files/IgnoreDeprecationsTest.php b/tests/end-to-end/event/_files/IgnoreDeprecationsTest.php index 23fed1fc09e..a165a42fbd6 100644 --- a/tests/end-to-end/event/_files/IgnoreDeprecationsTest.php +++ b/tests/end-to-end/event/_files/IgnoreDeprecationsTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event; +use const E_USER_DEPRECATED; use function error_get_last; use function trigger_error; use PHPUnit\Framework\Attributes\IgnoreDeprecations; diff --git a/tests/end-to-end/event/_files/SuppressedUserNoticeTest.php b/tests/end-to-end/event/_files/SuppressedUserNoticeTest.php index 0202ce8fb4b..d280987cd2b 100644 --- a/tests/end-to-end/event/_files/SuppressedUserNoticeTest.php +++ b/tests/end-to-end/event/_files/SuppressedUserNoticeTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event; +use const E_USER_NOTICE; use function error_get_last; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/event/_files/SuppressedUserWarningTest.php b/tests/end-to-end/event/_files/SuppressedUserWarningTest.php index f6bbbf93c02..d6c362f9cab 100644 --- a/tests/end-to-end/event/_files/SuppressedUserWarningTest.php +++ b/tests/end-to-end/event/_files/SuppressedUserWarningTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event; +use const E_USER_WARNING; use function error_get_last; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/event/_files/UserErrorTest.php b/tests/end-to-end/event/_files/UserErrorTest.php index 104418c4729..62ea7d170f8 100644 --- a/tests/end-to-end/event/_files/UserErrorTest.php +++ b/tests/end-to-end/event/_files/UserErrorTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event; +use const E_USER_ERROR; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/event/_files/UserNoticeTest.php b/tests/end-to-end/event/_files/UserNoticeTest.php index 9f310547be1..17046c78f5c 100644 --- a/tests/end-to-end/event/_files/UserNoticeTest.php +++ b/tests/end-to-end/event/_files/UserNoticeTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event; +use const E_USER_NOTICE; use function error_get_last; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/event/_files/UserWarningTest.php b/tests/end-to-end/event/_files/UserWarningTest.php index a534e1e18d4..21b232ee50a 100644 --- a/tests/end-to-end/event/_files/UserWarningTest.php +++ b/tests/end-to-end/event/_files/UserWarningTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event; +use const E_USER_WARNING; use function error_get_last; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php b/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php index ca91bf78aba..fa5b3fc3d34 100644 --- a/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php +++ b/tests/end-to-end/event/_files/custom-error-handler-registered-in-bootstrap-is-not-overwritten-by-phpunit/tests/ExampleTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event\ErrorHandlerIsNotOverwritten; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/event/_files/error-handler-can-be-disabled/src/Foo.php b/tests/end-to-end/event/_files/error-handler-can-be-disabled/src/Foo.php index b47fe9c50e0..d503df1b221 100644 --- a/tests/end-to-end/event/_files/error-handler-can-be-disabled/src/Foo.php +++ b/tests/end-to-end/event/_files/error-handler-can-be-disabled/src/Foo.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\Event\ErrorHandlerCanBeDisabled; +use const E_USER_WARNING; use function error_get_last; use function fopen; use function trigger_error; diff --git a/tests/end-to-end/regression/5340/Issue5340Test.php b/tests/end-to-end/regression/5340/Issue5340Test.php index fa54eac6ef3..2820b8c7ac5 100644 --- a/tests/end-to-end/regression/5340/Issue5340Test.php +++ b/tests/end-to-end/regression/5340/Issue5340Test.php @@ -13,14 +13,14 @@ final class Issue5340Test extends TestCase { public function testOne(): void { - print 'output printed from passing test' . PHP_EOL; + print 'output printed from passing test' . \PHP_EOL; $this->assertTrue(true); } public function testTwo(): void { - print PHP_EOL . 'output printed from failing test' . PHP_EOL; + print \PHP_EOL . 'output printed from failing test' . \PHP_EOL; $this->assertTrue(false); } diff --git a/tests/end-to-end/regression/5908-list-tests-xml.phpt b/tests/end-to-end/regression/5908-list-tests-xml.phpt new file mode 100644 index 00000000000..576e0bcaf08 --- /dev/null +++ b/tests/end-to-end/regression/5908-list-tests-xml.phpt @@ -0,0 +1,27 @@ +--TEST-- +https://github.com/sebastianbergmann/phpunit/issues/5908 +--FILE-- +run($_SERVER['argv']); + +unlink($file); +--EXPECTF-- +PHPUnit %s by Sebastian Bergmann and contributors. + +Wrote list of tests that would have been run to %s + + +There were errors: + +The data provider specified for PHPUnit\TestFixture\Issue5908\Issue5908Test::testOne is invalid +message diff --git a/tests/end-to-end/regression/5908-list-tests.phpt b/tests/end-to-end/regression/5908-list-tests.phpt new file mode 100644 index 00000000000..36337579da3 --- /dev/null +++ b/tests/end-to-end/regression/5908-list-tests.phpt @@ -0,0 +1,22 @@ +--TEST-- +https://github.com/sebastianbergmann/phpunit/issues/5908 +--FILE-- +run($_SERVER['argv']); +--EXPECTF-- +PHPUnit %s by Sebastian Bergmann and contributors. + +Available test(s): + + +There were errors: + +The data provider specified for PHPUnit\TestFixture\Issue5908\Issue5908Test::testOne is invalid +message diff --git a/tests/end-to-end/regression/5908/Issue5908Test.php b/tests/end-to-end/regression/5908/Issue5908Test.php new file mode 100644 index 00000000000..e3e6658d2a6 --- /dev/null +++ b/tests/end-to-end/regression/5908/Issue5908Test.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace PHPUnit\TestFixture\Issue5908; + +use Exception; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\TestCase; + +final class Issue5908Test extends TestCase +{ + public static function provider(): array + { + throw new Exception('message'); + } + + #[DataProvider('provider')] + public function testOne(int $value): void + { + } +} diff --git a/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-function/src/FirstPartyClass.php b/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-function/src/FirstPartyClass.php index 1c3d007d8b7..aca0b8b8d05 100644 --- a/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-function/src/FirstPartyClass.php +++ b/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-function/src/FirstPartyClass.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\SelfDirectIndirect; +use const E_USER_DEPRECATED; use function trigger_error; final class FirstPartyClass diff --git a/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-method/src/FirstPartyClass.php b/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-method/src/FirstPartyClass.php index 1c3d007d8b7..aca0b8b8d05 100644 --- a/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-method/src/FirstPartyClass.php +++ b/tests/end-to-end/self-direct-indirect/_files/deprecation-trigger-method/src/FirstPartyClass.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\SelfDirectIndirect; +use const E_USER_DEPRECATED; use function trigger_error; final class FirstPartyClass diff --git a/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct-indirect/src/FirstPartyClass.php b/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct-indirect/src/FirstPartyClass.php index 1c3d007d8b7..aca0b8b8d05 100644 --- a/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct-indirect/src/FirstPartyClass.php +++ b/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct-indirect/src/FirstPartyClass.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\SelfDirectIndirect; +use const E_USER_DEPRECATED; use function trigger_error; final class FirstPartyClass diff --git a/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct/src/FirstPartyClass.php b/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct/src/FirstPartyClass.php index 1c3d007d8b7..aca0b8b8d05 100644 --- a/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct/src/FirstPartyClass.php +++ b/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self-direct/src/FirstPartyClass.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\SelfDirectIndirect; +use const E_USER_DEPRECATED; use function trigger_error; final class FirstPartyClass diff --git a/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self/src/FirstPartyClass.php b/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self/src/FirstPartyClass.php index 1c3d007d8b7..aca0b8b8d05 100644 --- a/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self/src/FirstPartyClass.php +++ b/tests/end-to-end/self-direct-indirect/_files/user-deprecation-report-self/src/FirstPartyClass.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\SelfDirectIndirect; +use const E_USER_DEPRECATED; use function trigger_error; final class FirstPartyClass diff --git a/tests/end-to-end/self-direct-indirect/_files/user-deprecation/src/FirstPartyClass.php b/tests/end-to-end/self-direct-indirect/_files/user-deprecation/src/FirstPartyClass.php index 1c3d007d8b7..aca0b8b8d05 100644 --- a/tests/end-to-end/self-direct-indirect/_files/user-deprecation/src/FirstPartyClass.php +++ b/tests/end-to-end/self-direct-indirect/_files/user-deprecation/src/FirstPartyClass.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\SelfDirectIndirect; +use const E_USER_DEPRECATED; use function trigger_error; final class FirstPartyClass diff --git a/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct-indirect.phpt b/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct-indirect.phpt index c169b5c7dcd..d0bd429c5e1 100644 --- a/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct-indirect.phpt +++ b/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct-indirect.phpt @@ -33,7 +33,7 @@ Triggered by: * PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo %s:21 -2) %sFirstPartyClass.php:20 +2) %sFirstPartyClass.php:21 deprecation in first-party code Triggered by: diff --git a/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct.phpt b/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct.phpt index 087adf4f269..cc3f8a3e302 100644 --- a/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct.phpt +++ b/tests/end-to-end/self-direct-indirect/user-deprecation-report-self-direct.phpt @@ -33,7 +33,7 @@ Triggered by: * PHPUnit\TestFixture\SelfDirectIndirect\FirstPartyClassTest::testTwo %s:21 -2) %sFirstPartyClass.php:20 +2) %sFirstPartyClass.php:21 deprecation in first-party code Triggered by: diff --git a/tests/end-to-end/self-direct-indirect/user-deprecation-report-self.phpt b/tests/end-to-end/self-direct-indirect/user-deprecation-report-self.phpt index 8414119fe5c..52362fca891 100644 --- a/tests/end-to-end/self-direct-indirect/user-deprecation-report-self.phpt +++ b/tests/end-to-end/self-direct-indirect/user-deprecation-report-self.phpt @@ -22,7 +22,7 @@ Time: %s, Memory: %s 1 test triggered 1 deprecation: -1) %sFirstPartyClass.php:20 +1) %sFirstPartyClass.php:21 deprecation in first-party code Triggered by: diff --git a/tests/end-to-end/testdox/_files/DeprecationTest.php b/tests/end-to-end/testdox/_files/DeprecationTest.php index 12b3dbfdb72..14377d714c6 100644 --- a/tests/end-to-end/testdox/_files/DeprecationTest.php +++ b/tests/end-to-end/testdox/_files/DeprecationTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\TestDox; +use const E_USER_DEPRECATED; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/testdox/_files/NoticeTest.php b/tests/end-to-end/testdox/_files/NoticeTest.php index 217e8857fdc..94f71d4d02e 100644 --- a/tests/end-to-end/testdox/_files/NoticeTest.php +++ b/tests/end-to-end/testdox/_files/NoticeTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\TestDox; +use const E_USER_NOTICE; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/testdox/_files/WarningTest.php b/tests/end-to-end/testdox/_files/WarningTest.php index 48925d3cc79..c92c5c4a61f 100644 --- a/tests/end-to-end/testdox/_files/WarningTest.php +++ b/tests/end-to-end/testdox/_files/WarningTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TestFixture\TestDox; +use const E_USER_WARNING; use function trigger_error; use PHPUnit\Framework\TestCase; diff --git a/tests/end-to-end/testdox/test-that-triggers-deprecation-details.phpt b/tests/end-to-end/testdox/test-that-triggers-deprecation-details.phpt index 8638fde2956..ab95e431df0 100644 --- a/tests/end-to-end/testdox/test-that-triggers-deprecation-details.phpt +++ b/tests/end-to-end/testdox/test-that-triggers-deprecation-details.phpt @@ -25,13 +25,13 @@ Deprecation (PHPUnit\TestFixture\TestDox\Deprecation) 1 test triggered 1 deprecation: -1) %sDeprecationTest.php:19 +1) %sDeprecationTest.php:20 deprecation Triggered by: * PHPUnit\TestFixture\TestDox\DeprecationTest::testDeprecation - %sDeprecationTest.php:17 + %sDeprecationTest.php:18 OK, but there were issues! Tests: 1, Assertions: 1, Deprecations: 1. diff --git a/tests/end-to-end/testdox/test-that-triggers-notice-details.phpt b/tests/end-to-end/testdox/test-that-triggers-notice-details.phpt index 918c473170d..b4bfe8bee6a 100644 --- a/tests/end-to-end/testdox/test-that-triggers-notice-details.phpt +++ b/tests/end-to-end/testdox/test-that-triggers-notice-details.phpt @@ -25,13 +25,13 @@ Notice (PHPUnit\TestFixture\TestDox\Notice) 1 test triggered 1 notice: -1) %sNoticeTest.php:19 +1) %sNoticeTest.php:20 notice Triggered by: * PHPUnit\TestFixture\TestDox\NoticeTest::testNotice - %sNoticeTest.php:17 + %sNoticeTest.php:18 OK, but there were issues! Tests: 1, Assertions: 1, Notices: 1. diff --git a/tests/end-to-end/testdox/test-that-triggers-warning-details.phpt b/tests/end-to-end/testdox/test-that-triggers-warning-details.phpt index 1578ed3f719..cb53b482126 100644 --- a/tests/end-to-end/testdox/test-that-triggers-warning-details.phpt +++ b/tests/end-to-end/testdox/test-that-triggers-warning-details.phpt @@ -25,13 +25,13 @@ Warning (PHPUnit\TestFixture\TestDox\Warning) 1 test triggered 1 warning: -1) %sWarningTest.php:19 +1) %sWarningTest.php:20 warning Triggered by: * PHPUnit\TestFixture\TestDox\WarningTest::testWarning - %sWarningTest.php:17 + %sWarningTest.php:18 OK, but there were issues! Tests: 1, Assertions: 1, Warnings: 1. diff --git a/tests/unit/Event/Emitter/DispatchingEmitterTest.php b/tests/unit/Event/Emitter/DispatchingEmitterTest.php index 825436db3eb..b61dbb790f5 100644 --- a/tests/unit/Event/Emitter/DispatchingEmitterTest.php +++ b/tests/unit/Event/Emitter/DispatchingEmitterTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Event; +use const PHP_VERSION; use function array_map; use function array_values; use function explode; diff --git a/tests/unit/Event/Value/Runtime/PHPTest.php b/tests/unit/Event/Value/Runtime/PHPTest.php index 75f069dfdcb..2db484e0c43 100644 --- a/tests/unit/Event/Value/Runtime/PHPTest.php +++ b/tests/unit/Event/Value/Runtime/PHPTest.php @@ -15,6 +15,7 @@ use const PHP_RELEASE_VERSION; use const PHP_SAPI; use const PHP_VERSION; +use const PHP_VERSION_ID; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Small; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Event/Value/Telemetry/InfoTest.php b/tests/unit/Event/Value/Telemetry/InfoTest.php index 6efcb99f459..b4c530d8498 100644 --- a/tests/unit/Event/Value/Telemetry/InfoTest.php +++ b/tests/unit/Event/Value/Telemetry/InfoTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Event\Telemetry; +use const PHP_VERSION; use function version_compare; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Small; diff --git a/tests/unit/Framework/Constraint/Equality/IsEqualCanonicalizingTest.php b/tests/unit/Framework/Constraint/Equality/IsEqualCanonicalizingTest.php index 3d99b917c3d..72ba288bb35 100644 --- a/tests/unit/Framework/Constraint/Equality/IsEqualCanonicalizingTest.php +++ b/tests/unit/Framework/Constraint/Equality/IsEqualCanonicalizingTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Framework\Constraint; +use const PHP_EOL; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Small; diff --git a/tests/unit/Framework/Constraint/Equality/IsEqualIgnoringCaseTest.php b/tests/unit/Framework/Constraint/Equality/IsEqualIgnoringCaseTest.php index 92297475369..bb09d49f9c5 100644 --- a/tests/unit/Framework/Constraint/Equality/IsEqualIgnoringCaseTest.php +++ b/tests/unit/Framework/Constraint/Equality/IsEqualIgnoringCaseTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Framework\Constraint; +use const PHP_EOL; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Small; diff --git a/tests/unit/Framework/Constraint/Equality/IsEqualTest.php b/tests/unit/Framework/Constraint/Equality/IsEqualTest.php index 46a124fcb23..33c08a5120d 100644 --- a/tests/unit/Framework/Constraint/Equality/IsEqualTest.php +++ b/tests/unit/Framework/Constraint/Equality/IsEqualTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Framework\Constraint; +use const PHP_EOL; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Small; diff --git a/tests/unit/Framework/Constraint/String/StringMatchesFormatDescriptionTest.php b/tests/unit/Framework/Constraint/String/StringMatchesFormatDescriptionTest.php index c8fba41bad8..1557f9dc61c 100644 --- a/tests/unit/Framework/Constraint/String/StringMatchesFormatDescriptionTest.php +++ b/tests/unit/Framework/Constraint/String/StringMatchesFormatDescriptionTest.php @@ -9,6 +9,8 @@ */ namespace PHPUnit\Framework\Constraint; +use const DIRECTORY_SEPARATOR; +use const PHP_EOL; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Small; use PHPUnit\Framework\ExpectationFailedException; diff --git a/tests/unit/Framework/MockObject/Creation/MockBuilderTest.php b/tests/unit/Framework/MockObject/Creation/MockBuilderTest.php index e308e64ad5a..84111d36dd1 100644 --- a/tests/unit/Framework/MockObject/Creation/MockBuilderTest.php +++ b/tests/unit/Framework/MockObject/Creation/MockBuilderTest.php @@ -137,7 +137,6 @@ public function testCreatesMockObjectForTraitAndAllowsConfigurationOfMethods(): $this->assertTrue($double->concreteMethod()); } - #[IgnorePhpunitDeprecations] #[TestDox('onlyMethods() can be used to configure which methods should be doubled')] public function testCreatesPartialMockObjectForExtendableClass(): void { @@ -164,7 +163,22 @@ public function testCreatesMockObjectForUnknownType(): void $this->assertInstanceOf($type, $double); $this->assertInstanceOf(MockObject::class, $double); + } + + #[IgnorePhpunitDeprecations] + public function testDefaultBehaviourCanBeConfiguredExplicitly(): void + { + $double = $this->getMockBuilder(ExtendableClass::class) + ->enableOriginalConstructor() + ->enableOriginalClone() + ->enableAutoload() + ->enableArgumentCloning() + ->disableProxyingToOriginalMethods() + ->allowMockingUnknownTypes() + ->enableAutoReturnValueGeneration() + ->getMock(); + $this->assertTrue($double->constructorCalled); } #[TestDox('Mocked methods can be called from the original constructor of a partially mocked class')] diff --git a/tests/unit/Runner/Baseline/WriterTest.php b/tests/unit/Runner/Baseline/WriterTest.php index d9fe42ac411..65be3c46b97 100644 --- a/tests/unit/Runner/Baseline/WriterTest.php +++ b/tests/unit/Runner/Baseline/WriterTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Runner\Baseline; +use const DIRECTORY_SEPARATOR; use function realpath; use function unlink; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/tests/unit/TextUI/Configuration/Cli/BuilderTest.php b/tests/unit/TextUI/Configuration/Cli/BuilderTest.php index f89fb166f27..89bdefe02c7 100644 --- a/tests/unit/TextUI/Configuration/Cli/BuilderTest.php +++ b/tests/unit/TextUI/Configuration/Cli/BuilderTest.php @@ -1065,78 +1065,72 @@ public function testOrderByDependsSize(): void #[TestDox('--order-by no-depends')] public function testOrderByNoDepends(): void { - $this->markTestIncomplete('Handling of no-depends appears to be broken'); - $configuration = (new Builder)->fromParameters(['--order-by', 'no-depends']); $this->assertFalse($configuration->hasExecutionOrder()); $this->assertFalse($configuration->hasExecutionOrderDefects()); - $this->assertFalse($configuration->hasResolveDependencies()); + $this->assertTrue($configuration->hasResolveDependencies()); + $this->assertFalse($configuration->resolveDependencies()); } #[TestDox('--order-by no-depends,defects')] public function testOrderByNoDependsDefects(): void { - $this->markTestIncomplete('Handling of no-depends appears to be broken'); - $configuration = (new Builder)->fromParameters(['--order-by', 'no-depends,defects']); $this->assertFalse($configuration->hasExecutionOrder()); $this->assertTrue($configuration->hasExecutionOrderDefects()); $this->assertSame(TestSuiteSorter::ORDER_DEFECTS_FIRST, $configuration->executionOrderDefects()); - $this->assertFalse($configuration->hasResolveDependencies()); + $this->assertTrue($configuration->hasResolveDependencies()); + $this->assertFalse($configuration->resolveDependencies()); } #[TestDox('--order-by no-depends,duration')] public function testOrderByNoDependsDuration(): void { - $this->markTestIncomplete('Handling of no-depends appears to be broken'); - $configuration = (new Builder)->fromParameters(['--order-by', 'no-depends,duration']); $this->assertTrue($configuration->hasExecutionOrder()); $this->assertSame(TestSuiteSorter::ORDER_DURATION, $configuration->executionOrder()); $this->assertFalse($configuration->hasExecutionOrderDefects()); - $this->assertFalse($configuration->hasResolveDependencies()); + $this->assertTrue($configuration->hasResolveDependencies()); + $this->assertFalse($configuration->resolveDependencies()); } #[TestDox('--order-by no-depends,random')] public function testOrderByNoDependsRandom(): void { - $this->markTestIncomplete('Handling of no-depends appears to be broken'); - $configuration = (new Builder)->fromParameters(['--order-by', 'no-depends,random']); $this->assertTrue($configuration->hasExecutionOrder()); $this->assertSame(TestSuiteSorter::ORDER_RANDOMIZED, $configuration->executionOrder()); $this->assertFalse($configuration->hasExecutionOrderDefects()); - $this->assertFalse($configuration->hasResolveDependencies()); + $this->assertTrue($configuration->hasResolveDependencies()); + $this->assertFalse($configuration->resolveDependencies()); } #[TestDox('--order-by no-depends,reverse')] public function testOrderByNoDependsReverse(): void { - $this->markTestIncomplete('Handling of no-depends appears to be broken'); - $configuration = (new Builder)->fromParameters(['--order-by', 'no-depends,reverse']); $this->assertTrue($configuration->hasExecutionOrder()); $this->assertSame(TestSuiteSorter::ORDER_REVERSED, $configuration->executionOrder()); $this->assertFalse($configuration->hasExecutionOrderDefects()); - $this->assertFalse($configuration->hasResolveDependencies()); + $this->assertTrue($configuration->hasResolveDependencies()); + $this->assertFalse($configuration->resolveDependencies()); } #[TestDox('--order-by no-depends,size')] public function testOrderByNoDependsSize(): void { - $this->markTestIncomplete('Handling of no-depends appears to be broken'); - $configuration = (new Builder)->fromParameters(['--order-by', 'no-depends,size']); $this->assertTrue($configuration->hasExecutionOrder()); $this->assertSame(TestSuiteSorter::ORDER_SIZE, $configuration->executionOrder()); $this->assertFalse($configuration->hasExecutionOrderDefects()); - $this->assertFalse($configuration->hasResolveDependencies()); + $this->assertTrue($configuration->hasResolveDependencies()); + $this->assertFalse($configuration->resolveDependencies()); } #[TestDox('--order-by invalid')] @@ -1148,6 +1142,39 @@ public function testOrderByInvalid(): void (new Builder)->fromParameters(['--order-by', 'invalid']); } + public function testExecutionOrderMayNotBeConfigured(): void + { + $configuration = (new Builder)->fromParameters([]); + + $this->assertFalse($configuration->hasExecutionOrder()); + + $this->expectException(Exception::class); + + $configuration->executionOrder(); + } + + public function testExecutionOrderDefectsMayNotBeConfigured(): void + { + $configuration = (new Builder)->fromParameters([]); + + $this->assertFalse($configuration->hasExecutionOrderDefects()); + + $this->expectException(Exception::class); + + $configuration->executionOrderDefects(); + } + + public function testResolveDependenciesMayNotBeConfigured(): void + { + $configuration = (new Builder)->fromParameters([]); + + $this->assertFalse($configuration->hasResolveDependencies()); + + $this->expectException(Exception::class); + + $configuration->resolveDependencies(); + } + #[TestDox('--process-isolation')] public function testProcessIsolation(): void { diff --git a/tests/unit/TextUI/SourceFilterTest.php b/tests/unit/TextUI/SourceFilterTest.php index 362f3c47e3e..44abb40f10c 100644 --- a/tests/unit/TextUI/SourceFilterTest.php +++ b/tests/unit/TextUI/SourceFilterTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\TextUI\Configuration; +use const DIRECTORY_SEPARATOR; use function realpath; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; diff --git a/tests/unit/TextUI/SourceMapperTest.php b/tests/unit/TextUI/SourceMapperTest.php index db532c9e32b..7c564890beb 100644 --- a/tests/unit/TextUI/SourceMapperTest.php +++ b/tests/unit/TextUI/SourceMapperTest.php @@ -10,6 +10,7 @@ namespace PHPUnit\TextUI\Configuration; use const DIRECTORY_SEPARATOR; +use const PHP_OS_FAMILY; use function realpath; use Generator; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/tests/unit/Util/ColorTest.php b/tests/unit/Util/ColorTest.php index 7529549f771..57700918e9d 100644 --- a/tests/unit/Util/ColorTest.php +++ b/tests/unit/Util/ColorTest.php @@ -10,6 +10,7 @@ namespace PHPUnit\Util; use const DIRECTORY_SEPARATOR; +use const PHP_EOL; use function str_repeat; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; diff --git a/tests/unit/Util/PHP/DefaultJobRunnerTest.php b/tests/unit/Util/PHP/DefaultJobRunnerTest.php index dab4c90e3f0..c067bd0ef02 100644 --- a/tests/unit/Util/PHP/DefaultJobRunnerTest.php +++ b/tests/unit/Util/PHP/DefaultJobRunnerTest.php @@ -9,6 +9,7 @@ */ namespace PHPUnit\Util\PHP; +use const PHP_VERSION; use function version_compare; use Generator; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/tools/php-cs-fixer b/tools/php-cs-fixer index 8b324b44180..df1a6a2d2dc 100755 Binary files a/tools/php-cs-fixer and b/tools/php-cs-fixer differ