Changed
- #5915: Bootstrap extensions before building test suite
- #5917: Seal event facade before loading the test suite
- #5923: Filter configured deprecation triggers when displaying deprecation details
- #5927:
#[RequiresPhpunitExtension]
attribute
- #5928: Filter tests based on the PHP extensions they require
- #5964: Better error message when data provider is invalid
- The XML configuration file generator now references
vendor/phpunit/phpunit/phpunit.xsd
(instead of https://schema.phpunit.de/X.Y/phpunit.xsd
) when PHPUnit was installed using Composer and phpunit --generate-configuration
was invoked in the directory where vendor
is located
- The
--migrate-configuration
command no longer replaces vendor/phpunit/phpunit/phpunit.xsd
with https://schema.phpunit.de/X.Y/phpunit.xsd
- The output of
--list-groups
now shows how many tests a group contains
- The output of
--list-suites
now shows how many tests a test suite contains
Deprecated
- #5951:
includeUncoveredFiles
configuration option
- #5958: Support for
#[CoversTrait]
and #[UsesTrait]
attributes
- #5960: Support for targeting trait methods with the
#[CoversMethod]
and #[UsesMethod]
attributes (and respective annotations)
How to install or update PHPUnit