ℹ️ Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| phpunit/phpunit (source) | ^11.0 → ^13.3.3 |
[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
sebastianbergmann/phpunit (phpunit/phpunit)
v13.3.3: PHPUnit 13.3.3
Fixed
- Paths of included files are now escaped when generating the code that is executed in a separate process, so that a path containing special characters no longer produces broken code
- Tests of a test class that is skipped as a whole are missing from the TestDox output
- A test that is skipped or marked incomplete before it started is missing from the TestDox output
- A test that is marked incomplete before it started is not counted in the number of tests that ran
- No progress is printed for a test that is marked incomplete before it started
Learn how to install or update PHPUnit 13.3 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.3.2
v13.3.1: PHPUnit 13.3.1
Changed
- Invoking a static hook method such as
setUpBeforeClass()no longer triggers a deprecation warning on PHP 8.6
Learn how to install or update PHPUnit 13.3 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.3.0: PHPUnit 13.3.0
Added
- #3794: Filesystem-based code coverage targeting
- #5758: Make export of objects customizable
- #6546: Both property hooks can now be configured on test doubles of virtual hooked properties, even when the doubled property only declares one of them
- #6586: Custom code coverage driver support
- #6591: Repeated test execution using
--repeatCLI option and#[Repeat]attribute - #6701: Allow
expectOutputString()andexpectOutputRegex()to be combined and repeated - #6710: Deprecation Filters
- #6722: Allow
#[CoversNothing]on methods - #6742: Retry failing tests up to N times using
--retryCLI option#[Retry]attribute - #6827: Customize which deprecation trigger types fail the test run
- #6830: Warn when
failOnAllIssues="true"is combined with an explicitly disabled fine-grainedfailOn*setting - #6832: Allow doubling properties that do not declare property hooks
- #6853: Optionally warn when PHP is not configured for development
- phpunit/php-code-coverage #1140: Class-oriented HTML report
- phpunit/php-code-coverage #1141: Improve visualization of branch coverage and path coverage in the HTML report
- phpunit/php-code-coverage #1153: Filter HTML code coverage report by test size
--record-test-run-historyand--do-not-record-test-run-historyCLI options as well as therecordTestRunHistoryattribute for the XML configuration file to control whether the status and duration of each test are recorded for use by--order-by defectsand--order-by duration-*--without-class-viewCLI option andclassViewattribute for the XML configuration file to disable the class-oriented view in the HTML code coverage report--without-file-viewCLI option andfileViewattribute for the XML configuration file to disable the file-oriented view in the HTML code coverage report{PWD}is now substituted with the directory of the PHPT test file in--ENV--and--INI--sections of PHPT test files{TMP}(system directory for temporary files) and{ENV:name}(value of environment variablename) are now substituted in--INI--sections of PHPT test files- A PHPT test whose
--INI--section references an environment variable that is not set is now skipped - A
--SKIPIF--section of a PHPT test file that printsxfail <reason>now marks the test as expected to fail, as if the PHPT test file had an--XFAIL--section with that reason
Changed
- phpunit/php-code-coverage #1231: Identify dead code using static analysis
- phpunit/php-code-coverage #1259: Degrade gracefully when a source file cannot be parsed
- The test runner no longer crashes when an attribute cannot be instantiated
- Improved TestDox HTML report
- The feature formerly named "test result cache" is now named "test run history"; when a cache directory is configured, the file it is stored in is now named
test-run-historyinstead oftest-results - The test runner warns now when ordering by defects or duration is configured but recording of the test run history is disabled
TestCaseno longer captureserror_log()output for tests that do not useexpectErrorLog(), avoiding the cost of setting up error log redirection for every testerror_log()output from tests without an expectation is no longer echoed (date-stripped) to PHPUnit's output; it goes to the configured error log again, as it did before capture was introduced- A test running in process isolation that calls
error_log()withoutexpectErrorLog()now produces stderr output in the child process, which the test runner reports as a test error - A PHPT test that is expected to fail (
--XFAIL--section orxfailoutput from the--SKIPIF--section) but passes is now considered risky; this usually means the expected-failure marker is stale and should be removed - A PHPT test whose
--SKIPIF--section produces output that is not recognized is now considered risky; this usually means the skip check itself is broken. The keywords understood by PHP's own test runner that have no PHPUnit counterpart (info,warn,xleak,flaky, andnocache) are tolerated and do not make the test risky - PHPT tests now run with additional INI defaults for deterministic output (
date.timezone=UTC,display_startup_errors=1,fatal_error_backtraces=Off,ignore_repeated_errors=0,precision=14,serialize_precision=-1), consistent with PHP's own test runner; all of them can be overridden per test using the--INI--section
Deprecated
--cache-resultCLI option, use--record-test-run-historyinstead--do-not-cache-resultCLI option, use--do-not-record-test-run-historyinsteadcacheResultXML configuration attribute, userecordTestRunHistoryinsteadPHPUnit\TextUI\Configuration\Configuration::cacheResult(), usePHPUnit\TextUI\Configuration\Configuration::recordTestRunHistory()insteadPHPUnit\TextUI\Configuration\Configuration::testResultCacheFile(), usePHPUnit\TextUI\Configuration\Configuration::testRunHistoryFile()instead
Fixed
- Doubling a class with a property that declares both a final and a non-final hook no longer triggers a fatal error
expectErrorLog()now only considerserror_log()output written after it was called; previously, the expectation was also satisfied by output written beforeexpectErrorLog()was called- PHPT test files with an unknown section, a duplicated section, more than one of the
--FILE--,--FILEEOF--, and--FILE_EXTERNAL--sections, or more than one expectation section (--EXPECT--,--EXPECTF--,--EXPECTREGEX--, and their_EXTERNALvariants) are now rejected; previously, misspelled sections were silently ignored and duplicated sections silently overwrote each other - The regular expression from an
--EXPECTREGEX--section must now match the PHPT test's entire output, and.now matches newline characters, consistent with PHP's own test runner; previously, a match on a substring of the output was sufficient for the test to pass - The reason printed by a
--SKIPIF--section of a PHPT test is no longer mangled when it follows theskip <reason>convention used by PHP's own test suite; previously, the first two characters of the reason were stripped unless theskip: <reason>orskip - <reason>convention was used - The test runner no longer aborts with an uncaught
PHPUnit\Runner\Phpt\InvalidPhptFileExceptionwhen a PHPT test file has an empty--FILE--or--FILEEOF--section or a--FILE_EXTERNAL--section that references an empty file; such a file is now rejected while it is parsed and reported as an errored test PHPUnit\Runner\Phpt\InvalidPhptFileExceptionnow has a message that explains why the PHPT test file was rejected
Learn how to install or update PHPUnit 13.3 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.2.6: PHPUnit 13.2.6
Fixed
- #6861: Hook methods run twice when a template method is marked with its corresponding attribute
- Regression that stopped test methods from being sorted by source code location
Learn how to install or update PHPUnit 13.2 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.2.5: PHPUnit 13.2.5
Changed
- Messages for tests that are skipped because of an unsatisfied
RequiresPhp,RequiresPhpunit, orRequiresPhpExtensionversion requirement now include the version that is actually being used - Warning messages about incomplete version requirements as well as version requirements without a version comparison operator, and the error message for invalid version requirements, now include the full version requirement and explain what is expected
Fixed
- #6825: Forwarding to previous error handler can result in infinite recursion
- #6831: PHPUnit's error handler does not respect
@error suppression and forwards suppressed warnings to previous error handler - #6833:
assertArrayHasKey()does not acceptArrayAccessimplementations with a specific value type when test code is analysed with PHPStan at level 9 - #6854: Deprecation triggered in first-party code is wrongly classified as indirect when the first-party code is called from third-party code
- Test classes were not sorted relative to each other when tests were ordered by duration
Learn how to install or update PHPUnit 13.2 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.2.4: PHPUnit 13.2.4
Fixed
- #6817: Issue is reported even when previously registered error handler turns the error into an exception
- #6818: Issue is reported when custom error handler checks
error_reporting()output dynamically
Learn how to install or update PHPUnit 13.2 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.2.3
v13.2.2: PHPUnit 13.2.2
Fixed
- #6768: Negative priorities for hook methods are rejected by static analysis
- #6778: Deprecation triggered outside of tests cannot be ignored
Learn how to install or update PHPUnit 13.2 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.2.1: PHPUnit 13.2.1
Fixed
- #6741: Test is not run when
--filtermatches the name of a data set but not the name of the test method - #6743: Improve error message for invalid version constraint in attribute
- #6744: Environment variable attributes reject empty-string values since PHPUnit 13.2.0
Learn how to install or update PHPUnit 13.2 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.2.0: PHPUnit 13.2.0
Added
- #3387: Specify a list of tests to run
- #4201: Handle interrupts and display current test results
- #4501: Option to mark test as risky when it does not contribute to code coverage
- #5757: Add assertions for ignoring whitespace differences in strings
- #5810: Do not dump arrays and objects in failure messages of
IsTrue,IsFalse,IsNull,IsFinite,IsInfinite, andIsNanconstraints - #5838: Inherit
#[RunTestsInSeparateProcesses]from parent test classes - #5922:
assertContainsEquals()should usesebastian/comparatorfor element comparison - #6000: Report PHPT test as risky when
--SKIPIF--does not have standard-output side effect - #6075: Support test execution order sorted by descending duration
- #6346: Emit warning when conflicting CLI options are used
- #6534: Make
$_dataNameavailable to#[TestDoxFormatter]callbacks - #6559: Improved API for exception message expectations
- #6565: Optional
$skipWhenEmptyparameter for#[DataProvider]and#[DataProviderExternal] - #6566: Allow
--stop-on-defect,--stop-on-error, etc. to accept an optional threshold - #6567: Make diff context lines configurable
- #6574: Improve
willReturnMap()with constraint support and strict matching - #6575:
--list-test-idsCLI option and enhance--filterCLI option to support test ID syntax - #6577:
--run-test-id <test-id>CLI option that accepts a single test ID for exact matching - #6579: Properly handle issues triggered outside of tests
- #6597: Compact output (activated through
--compactCLI option andPHPUNIT_COMPACT_OUTPUT=1environment variable) - #6598:
--disable-coverage-targetingCLI option - #6602: Separate configuration for branch coverage from path coverage
- #6606: Support for partially ordered parameter sets in mock object expectations
- #6611: Add CPU time to telemetry
- #6681: Comment-aware variants of XML comparison assertions
- The
executionOrderattribute in the XML configuration file now acceptsdefectscombined with any main order, as well as three-way combinations ofdepends/no-depends,defects, and a main order (for example,depends,defects,duration-ascending) --validate-configurationCLI option to validate an XML configuration file for PHPUnit- Report TestDox information in Open Test Reporting XML
- Report per-test and per-test-suite resource usage (time, memory usage, peak memory usage) in Open Test Reporting XML
- Report number of assertions performed for each test in Open Test Reporting XML
- Report structured comparison failure details (expected, actual, diff) in Open Test Reporting XML
- Report random order seed in Open Test Reporting XML when test execution order is randomised
Changed
- #5873: Chain previously registered error handler instead of silently disabling PHPUnit's error handling
- #6535: Use
sebastian/file-filterinSourceFilter::includes()for issue trigger identification - #6581: Allow
#[IgnoreDeprecations]to be repeated - #6609: Skip data providers whose method cannot match
--filter - #6685: Generate failure messages for inverse assertions by authoring negations, not by rewriting strings
- Only errors and failures are now considered for "defect first" test reordering (tests that triggered deprecations, notices, or warnings as well as incomplete, risky, and skipped tests were previous also considered)
- A warning is now emitted when closures are compared for equality using the
IsEqual,IsEqualCanonicalizing,IsEqualIgnoringCase,IsEqualWithDelta, andTraversableContainsEqualconstraints or theassertEquals(),assertEqualsCanonicalizing(),assertEqualsIgnoringCase(),assertEqualsWithDelta(), andassertContainsEquals()assertions
Deprecated
- #6075:
--order-by durationCLI option, use--order-by duration-ascendinginstead - #6075:
--order-by sizeCLI option, use--order-by size-ascendinginstead - #6075:
executionOrder="duration"XML configuration attribute value, useexecutionOrder="duration-ascending"instead - #6075:
executionOrder="size"XML configuration attribute value, useexecutionOrder="size-ascending"instead - #6560: Soft-deprecate
expectExceptionMessage(), useexpectExceptionMessageIsOrContains()instead
Fixed
- #5845: Error handlers registered before PHPUnit (e.g. via
auto_prepend_file) cause false "risky test" warnings - #5851: Output buffer manipulation in tests causes incorrect capture, hangs, and silent failures
- #6582:
TestSuiteSorter::cmpSize()does not handleTestSuiteobjects forTestCaseclasses
Learn how to install or update PHPUnit 13.2 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.14: PHPUnit 13.1.14
Fixed
- #6683:
assertNotEquals()failure message says "is equal to" instead of "is not equal to" when comparing arrays or objects - #6700:
expectOutputString()andexpectOutputRegex()silently replace themselves and each other
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.13: PHPUnit 13.1.13
Fixed
- #6681: XML assertions such as
assertXmlStringEqualsXmlString()regressed into treating comments as significant
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.12: PHPUnit 13.1.12
Fixed
- #6673: Empty PHP settings from the parent process override per-test
-dsettings forwarded to child processes (breaks PCOV coverage)
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.11: PHPUnit 13.1.11
Fixed
- PHP setting values containing
=need to be quoted before forwarding via-d
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.10: PHPUnit 13.1.10
Changed
- Pass configuration options introduced in sebastian/diff 8.3.0
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.9: PHPUnit 13.1.9
Changed
- A
TestorTestsprefix is no longer stripped from class names when they are processed for TestDox output
Fixed
- #6605: Data set names and provider values containing Unicode bidirectional control characters distort terminal output
- #6610: Per-testsuite bootstrap script not loaded in process isolation
- TestDox output collapsed separate test classes into a single group when their prettified class names matched
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.8: PHPUnit 13.1.8
Fixed
- #6595: Crash when before-class or after-class method fails with assertion failure
- #6599: TeamCity logger does not wrap failures in before-test methods with
testStartedandtestFinished - #6601: Anonymous classes are not rejected with a clear error when creating a test double
- #6603:
assertArrays*IgnoringOrder()fails on mixed scalar types and on reordered nested associative arrays MockBuilder::setMockClassName()andTestStubBuilder::setStubClassName()now reject values that are not valid unqualified PHP class identifiers, throwing the newInvalidClassNameException- The regular expression used by
Generator::ensureValidMethods()to validate method names passed toMockBuilder::onlyMethods()andaddMethods()was not anchored, so any string containing a valid identifier substring (including strings with parentheses, braces, comments, or newlines) was accepted
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.7: PHPUnit 13.1.7
Changed
- Pass
LIBXML_NONETwhen parsing/validating XML configuration files to make explicit that no network I/O is performed - Verify the result file written by an isolated child process with a random nonce before deserializing it
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.6: PHPUnit 13.1.6
Fixed
- #6590: Silent failure when configuration file is invalid
- #6592: INI metacharacters
;and"are not preserved when forwarding settings to child processes
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.5: PHPUnit 13.1.5
Fixed
- #5860: PHP CLI
-dsettings are not forwarded to child processes for process isolation - #6451: Incomplete version in
RequiresPhp(e.g.<=8.5) is compared against full PHP version, causing unexpected skips - #6589:
dataSetAsStringWithData()raises "float is not representable as int" warning for large floats in data sets
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.4: PHPUnit 13.1.4
Fixed
- #5993:
DefaultJobRunnerdeadlocks on child processes that write large amounts of stderr output - #6465: SAPI-populated
$_SERVERentries leak from parent into child process - #6587:
failOnEmptyTestSuite="false"inphpunit.xmlis ignored when--group/--filter/--testsuitematches no tests - #6588: Order of issue baseline entries is not canonicalized
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.3: PHPUnit 13.1.3
Fixed
- Regression in XML configuration migration introduced in PHPUnit 12.5.8
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.2: PHPUnit 13.1.2
Fixed
- #4571: No warning when
--random-order-seedis used when test execution order is not random - #4975:
--filterdoes not work when filter string starts with# - #5354: JUnit XML logger does not handle
TestSuiteSkippedevent - #6276: Exit with non-zero exit code when explicit test selection (
--filter,--group,--testsuite) yields no tests - #6583: Failing output expectation skips
tearDown()and handler restoration, causing subsequent tests to be marked as risky
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.1: PHPUnit 13.1.1
Changed
- #3676: Include class/interface name in mock object expectation failure messages
- #4793: Exit with non-zero exit code when
exitwas called from some test
Fixed
- #5881:
colors="true"in XML configuration file does not unconditionally enable colored output - #6019:
--migrate-configurationdoes not update schema location when XML content already validates against current schema - #6372: Assertion failure inside
willReturnCallback()is silently swallowed when code under test catches exceptions - #6464: Process isolation template unconditionally calls
set_include_path() - #6571: Static analysis errors for
TestDoubleBuildermethod chaining
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.1.0: PHPUnit 13.1.0
Added
- #6501: Include unexpected output in Open Test Reporting (OTR) XML logfile
- #6517:
includeInCodeCoverageattribute for<directory>and<file>children of<source> - #6523: Include
#[Group]information in Open Test Reporting (OTR) XML logfile - #6524: Report issues in Open Test Reporting (OTR) XML logfile
- #6526: Introduce
#[DataProviderClosure]for static closures - #6530: Support for custom issue trigger resolvers that can be configured using
<issueTriggerResolvers>in the XML configuration file - #6547: Support for
%r...%rinEXPECTFsection - Support for configuring HTML code coverage report options (colors, thresholds, custom CSS) in XML configuration file without requiring an
outputDirectoryattribute, allowing the output directory to be specified later with the--coverage-htmlCLI option - Support for configuring dark mode colors, progress bar colors, and breadcrumb colors for HTML code coverage reports in the XML configuration file
Changed
- #6557: Improve failure description for
StringMatchesFormatDescriptionconstraint which is used byassertFileMatchesFormat(),assertFileMatchesFormatFile(),assertStringMatchesFormat(),assertStringMatchesFormatFile(), andEXPECTFsections of PHPT test files - The HTML code coverage report now uses a more colorblind-friendly blue/amber/orange palette by default
- Extracted
PHPUnit\Runner\Extension\Facadefrom a concrete class to an interface and introduced an internalExtensionFacadeimplementation, so that extensions only depend on theFacadeinterface while PHPUnit internally uses theExtensionFacadeclass that also provides query methods
Deprecated
- #6515: Deprecate the
--log-events-verbose-text <file>CLI option - #6537: Soft-deprecate
id()andafter()for mock object expectations
Fixed
- #6025:
FILE_EXTERNALbreaks__DIR__ - #6351: No warning when the same test runner extension is configured more than once
- #6433: Logic in
TestSuiteLoaderis brittle and causes "Class FooTest not found" even for valid tests in valid filenames - #6463: Process Isolation fails on non-serializable globals and quietly ignore closures
Learn how to install or update PHPUnit 13.1 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.6: PHPUnit 13.0.6
Changed
- #4440: Improve error when configured code coverage file list is empty
- #6549: Allow to stub both hooks of non-virtual properties
Fixed
- #6529: Git "detached HEAD state" in Open Test Reporting (OTR) XML logger not handled properly
- #6545: Stubbing a class with set property hook leaves property uninitialized by default
- The
RegularExpressionandStringMatchesFormatDescriptiondid not handlepreg_match()errors such asCompilation failed: regular expression is too large
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.5: PHPUnit 13.0.5
Fixed
- #6521: Performance regression in PHPUnit 11.5.54, PHPUnit 12.5.13, and PHPUnit 13.0.4
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.4: PHPUnit 13.0.4
Fixed
- #6489: Classification of self/direct/indirect deprecation triggers is not aligned with Symfony's bridge for PHPUnit
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.3: PHPUnit 13.0.3
Fixed
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.2: PHPUnit 13.0.2
Deprecated
- #6505: Calling
atLeast()with an argument that is not positive - #6507: Support for using
with*()withoutexpects()
Fixed
- #6503: Temporary file used by
SourceMappermay be deleted prematurely when multiple PHPUnit processes run in parallel - #6509: "No expectations were configured for the mock object ..." notice is emitted when
with()is used withoutexpects()
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.1: PHPUnit 13.0.1
Fixed
- #6495: Source map for issue trigger identification is regenerated in process isolation child processes
- #6497:
method()returnsInvocationMockerinstead ofInvocationStubberfor test stubs
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v13.0.0: PHPUnit 13.0.0
Added
- #6450:
TestCase::invokeTestMethod()method for customizing test method invocation - #6455:
withParameterSetsInOrder()andwithParameterSetsInAnyOrder()for expecting calls to the same method of a mock object but with different arguments - #6466: Sealed test doubles
- #6468: Configuration option to require sealed mock objects
- #6477:
assertArraysAreIdentical(),assertArraysAreIdenticalIgnoringOrder(),assertArraysHaveIdenticalValues(),assertArraysHaveIdenticalValuesIgnoringOrder(),assertArraysAreEqual(),assertArraysAreEqualIgnoringOrder(),assertArraysHaveEqualValues(), andassertArraysHaveEqualValuesIgnoringOrder()assertions --test-files-file <file>CLI option to configure a file that contains the paths to the test files to be loaded (one file per line); use this when using CLI arguments is not an option due to argument length limitations
Deprecated
- #6461:
any()matcher (hard deprecation)
Removed
- #6054:
Assert::isType() - #6057:
assertContainsOnly()andassertNotContainsOnly() - #6061:
containsOnly() - #6076: Support for PHP 8.3
- #6141:
testClassName()method on event value objects for hook methods called for test methods - #6230:
Configuration::includeTestSuite()andConfiguration::excludeTestSuite() - #6241:
--dont-report-useless-testsCLI option - #6247: Support for using
#[CoversNothing]on a test method - #6285:
#[RunClassInSeparateProcess]attribute - #6356: Support for version constraint string argument without explicit version comparison operator
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v12.5.35
v12.5.34
v12.5.33: PHPUnit 12.5.33
Fixed
- #6861: Hook methods run twice when a template method is marked with its corresponding attribute
- Regression that stopped test methods from being sorted by source code location
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
- You can follow @phpunit@phpc.social to stay up to date with PHPUnit's development.
- You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.
v12.5.32: PHPUnit 12.5.32
Fixed
- [#6833](http
✂ Note
PR body was truncated to here.
Configuration
📅 Schedule: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.