Releases: sebastianbergmann/phpunit
Releases · sebastianbergmann/phpunit
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
StringMatchesFormatDescriptionconstraint to be consistent with PHP'srun-tests.php
Fixed
- #5965:
PHPUnit\Framework\Exceptiondoes not handle string error codes (PDOExceptionwith 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-configurationwas invoked in the directory wherevendoris located - The
--migrate-configurationcommand no longer replacesvendor/phpunit/phpunit/phpunit.xsdwithhttps://schema.phpunit.de/X.Y/phpunit.xsd - The output of
--list-groupsnow shows how many tests a group contains - The output of
--list-suitesnow shows how many tests a test suite contains
Deprecated
- #5951:
includeUncoveredFilesconfiguration 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_STRICTconstant in PHP 8.4 - Removed
.phpstorm.meta.phpfile as methods such asTestCase::createStub()use generics / template types for their return types and PhpStorm, for example, uses that information
PHPUnit 8.5.40
Changed
- #5956: Deprecation of the
E_STRICTconstant in PHP 8.4 - Removed
.phpstorm.meta.phpfile as methods such asTestCase::createStub()use generics / template types for their return types and PhpStorm, for example, uses that information
PHPUnit 11.3.5
Fixed
- #5874: Test Stub generated by return value generator for doubled method with
staticreturn type declaration is not properly initialized - #5931: Reverted addition of
nameproperty on<testsuites>element in JUnit XML logfile - #5946:
Callbackthrows aTypeErrorwhen checking acallablehas variadic parameters
PHPUnit 10.5.34
PHPUnit 11.3.4
Fixed
- #4584:
assertJsonStringEqualsJsonString()considers objects with sequential numeric keys equal to be arrays - #4625: Generator yielding keys that are neither integer or string leads to hard-to-understand error message when used as data provider
- #4674: JSON assertions should treat objects as unordered
- #5891:
Callbackconstraint does not handle variadic arguments correctly when used for mock object expectations - #5929: TestDox output containing
$at the beginning gets truncated when used with a data provider - #5943: Tests configured to be in group(s) using the XML configuration file are also added to the
defaultgroup
PHPUnit 10.5.33
Fixed
- #4584:
assertJsonStringEqualsJsonString()considers objects with sequential numeric keys equal to be arrays - #4625: Generator yielding keys that are neither integer or string leads to hard-to-understand error message when used as data provider
- #4674: JSON assertions should treat objects as unordered
- #5891:
Callbackconstraint does not handle variadic arguments correctly when used for mock object expectations - #5929: TestDox output containing
$at the beginning gets truncated when used with a data provider