Releases: sebastianbergmann/phpunit
Releases · sebastianbergmann/phpunit
PHPUnit 11.4.3
PHPUnit 10.5.38
PHPUnit 11.4.2
PHPUnit 10.5.37
PHPUnit 11.4.1
Changed
- Updated regular expressions used by
StringMatchesFormatDescription
constraint to be consistent with PHP'srun-tests.php
Fixed
- #5977: TestDox result collector does not correctly handle baseline-ignored
E_DEPRECATED
issues
PHPUnit 10.5.36
Changed
- #5957: Skip data provider build when requirements are not satisfied
- #5969: Check for requirements before creating a separate process
- Updated regular expressions used by
StringMatchesFormatDescription
constraint to be consistent with PHP'srun-tests.php
Fixed
- #5965:
PHPUnit\Framework\Exception
does not handle string error codes (PDOException
with error code'HY000'
, for example)
PHPUnit 11.4.0
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 ofhttps://schema.phpunit.de/X.Y/phpunit.xsd
) when PHPUnit was installed using Composer andphpunit --generate-configuration
was invoked in the directory wherevendor
is located - The
--migrate-configuration
command no longer replacesvendor/phpunit/phpunit/phpunit.xsd
withhttps://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)
PHPUnit 11.3.6
PHPUnit 10.5.35
PHPUnit 9.6.21
Changed
- #5956: Deprecation of the
E_STRICT
constant in PHP 8.4 - Removed
.phpstorm.meta.php
file as methods such asTestCase::createStub()
use generics / template types for their return types and PhpStorm, for example, uses that information