Releases: sebastianbergmann/phpunit
Releases · sebastianbergmann/phpunit
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
PHPUnit 8.5.40
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
PHPUnit 11.3.5
Fixed
- #5874: Test Stub generated by return value generator for doubled method with
static
return type declaration is not properly initialized - #5931: Reverted addition of
name
property on<testsuites>
element in JUnit XML logfile - #5946:
Callback
throws aTypeError
when checking acallable
has 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:
Callback
constraint 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
default
group