Renovate (cba0501d) at 06 Feb 08:01
This MR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| phpunit/phpunit (source) |
^8.5.22 || ^9.5.11 → ^8.5.22 || ^9.5.11 || ^12.0.0
|
v12.5.8: PHPUnit 12.5.8
.coverage files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runsLearn how to install or update PHPUnit 12.5 in the documentation.
v12.5.7: PHPUnit 12.5.7
Count::getCountOf() for unusal implementations of Iterator or IteratorAggregate
Learn how to install or update PHPUnit 12.5 in the documentation.
v12.5.6: PHPUnit 12.5.6
Learn how to install or update PHPUnit 12.5 in the documentation.
v12.5.5: PHPUnit 12.5.5
any() matcher (soft deprecation)Learn how to install or update PHPUnit 12.5 in the documentation.
v12.5.4: PHPUnit 12.5.4
#[AllowMockObjectsWithoutExpectations] attribute can now be used on the method levelTimer::start() has to be called before Timer::stop()
Learn how to install or update PHPUnit 12.5 in the documentation.
v12.5.3: PHPUnit 12.5.3
Learn how to install or update PHPUnit 12.5 in the documentation.
v12.5.2: PHPUnit 12.5.2
#[AllowMockObjectsWithoutExpectations] for excluding tests from the check that emits the notice for test methods that create a mock object but do not configure an expectation for itLearn how to install or update PHPUnit 12.5 in the documentation.
v12.5.1: PHPUnit 12.5.1
TestCase::getStubBuilder() (analogous to TestCase::getMockBuilder()) for creating (partial) test stubs using a fluent APILearn how to install or update PHPUnit 12.5 in the documentation.
v12.5.0: PHPUnit 12.5.0
--all CLI option to ignore test selection configured in XML configuration file<source> element in XML code coverage report optionalThrowable in expectExceptionObject()
Learn how to install or update PHPUnit 12.5 in the documentation.
v12.4.5: PHPUnit 12.4.5
Learn how to install or update PHPUnit 12.4 in the documentation.
v12.4.4: PHPUnit 12.4.4
Learn how to install or update PHPUnit 12.4 in the documentation.
v12.4.3: PHPUnit 12.4.3
STDOUT when rewind() failsLearn how to install or update PHPUnit 12.4 in the documentation.
v12.4.2: PHPUnit 12.4.2
Learn how to install or update PHPUnit 12.4 in the documentation.
v12.4.1: PHPUnit 12.4.1
--filter format used by PhpStorm stopped workingDataProviderMethodCalled event value objectLearn how to install or update PHPUnit 12.4 in the documentation.
v12.4.0: PHPUnit 12.4.0
#[IgnoreDeprecations] attribute#[RunClassInSeparateProcess] attributeLearn how to install or update PHPUnit 12.4 in the documentation.
v12.3.15: PHPUnit 12.3.15
failOnPhpunitWarning="false" has no effectLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.14: PHPUnit 12.3.14
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.13: PHPUnit 12.3.13
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.12: PHPUnit 12.3.12
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.11: PHPUnit 12.3.11
__sleep() and __wakeup() from test double code generation on PHP >= 8.5Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.10: PHPUnit 12.3.10
E_DEPRECATED issues when building the test suiteLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.9: PHPUnit 12.3.9
__sleep() method (which will be deprecated in PHP 8.5)Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.8: PHPUnit 12.3.8
Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.7: PHPUnit 12.3.7
#[IgnorePhpunitDeprecations] is now considered for test runner deprecations (where applicable)Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.6
v12.3.5: PHPUnit 12.3.5
error_reporting=E_ALL for --check-php-configuration
expectUserDeprecationMessage*() fails when test is run in separate processLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.4: PHPUnit 12.3.4
--check-php-configuration
ini_set('error_log') sets filepath outside open_basedir
Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.3: PHPUnit 12.3.3
#[IgnorePhpunitDeprecations] is now considered for test runner deprecations" from PHPUnit 12.3.1)Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.2: PHPUnit 12.3.2
test
SplObjectStorage methods that will be deprecated in PHP 8.5Learn how to install or update PHPUnit 12.3 in the documentation.
v12.3.1: PHPUnit 12.3.1
--check-php-configuration CLI option for checking whether PHP is configured for testing#[IgnorePhpunitDeprecations] is now considered for test runner deprecations (where applicable)#[TestWith] or #[TestWithJson] attributes are now properly reportedDataProviderMethodFinished event is now also emitted when the provided data set has an invalid keyLearn how to install or update PHPUnit 12.3 in the documentation.
v12.3.0: PHPUnit 12.3.0
#[IgnorePHPUnitWarnings] attribute for ignoring PHPUnit warnings#[TestDoxFormatter] and #[TestDoxFormatterExternal] attributes for configuring a custom TestDox formatter for tests that use data from data providersTestRunner\ChildProcessErrored eventConfiguration::includeTestSuites() and Configuration::excludeTestSuites()
@<data-set-name> format (compatible with --filter CLI option) in defect messages#[DataProvider*] attributes are mixed with #[TestWith*] attributesConfiguration::includeTestSuite(), use Configuration::includeTestSuites() insteadConfiguration::excludeTestSuite(), use Configuration::excludeTestSuites() instead#[CoversNothing] on a test methodHow to install or update PHPUnit
v12.2.9: PHPUnit 12.2.9
file attribute of <testClass> node of XML test list can be wrongHow to install or update PHPUnit
v12.2.8: PHPUnit 12.2.8
How to install or update PHPUnit
v12.2.7: PHPUnit 12.2.7
defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schematest prefixHow to install or update PHPUnit
v12.2.6: PHPUnit 12.2.6
@no-named-arguments leads to static analysis errors for variadic argumentsHow to install or update PHPUnit
v12.2.5: PHPUnit 12.2.5
<testsuite> element is missing required name attributeHow to install or update PHPUnit
v12.2.4: PHPUnit 12.2.4
--include-git-information CLI option or the includeGitInformation attribute in the XML configuration fileHow to install or update PHPUnit
v12.2.3: PHPUnit 12.2.3
failOnPhpunitWarning attribute on the <phpunit> element of the XML configuration file and --fail-on-phpunit-warning CLI option for controlling whether PHPUnit should fail on PHPUnit warnings (default: true)--do-not-fail-on-deprecation, --do-not-fail-on-phpunit-warning, --do-not-fail-on-phpunit-deprecation, --do-not-fail-on-empty-test-suite, --do-not-fail-on-incomplete, --do-not-fail-on-notice, --do-not-fail-on-risky, --do-not-fail-on-skipped, and --do-not-fail-on-warning CLI options--do-not-report-useless-tests CLI option as a replacement for --dont-report-useless-tests
--dont-report-useless-tests CLI option (use --do-not-report-useless-tests instead)ExpectationFailedException
How to install or update PHPUnit
v12.2.2: PHPUnit 12.2.2
shortenArraysForExportThreshold XML configuration setting has no effect on all arrays exported for event-related value objectsHow to install or update PHPUnit
v12.2.1: PHPUnit 12.2.1
How to install or update PHPUnit
v12.2.0: PHPUnit 12.2.0
PHPUnit has supported reporting test results in the JUnit XML format for a long time. Unfortunately, there has never been a standard schema for the JUnit XML format. Common consumers of Clover XML log files interpret these files differently, which has led to frequent problems.
To address this, the JUnit team started the Open Test Reporting project, creating and maintaining language-agnostic XML and HTML test reporting formats. Unlike JUnit XML, Open Test Reporting's XML formats are extensible.
Logging in the Open Test Reporting XML format is controlled by the new --log-otr CLI option and the new <otr> XML configuration element.
This feature is experimental and the generated XML may change in order to enhance compliance with the Open Test Reporting project's XML schema definitions. The same applies to the XML schema definitions for information that is specific for PHP and PHPUnit. Please note that such changes may occur in bugfix or minor releases and could potentially break backwards compatibility.
PHPUnit has supported reporting code coverage information in the Clover XML format for a long time. Unfortunately, there has never been a standard schema for the Clover XML format. Common consumers of Clover XML log files interpret these files differently, which leads to frequent problems.
The original commercial Clover project has been superseded by the Open Source OpenClover project, which provides an XML schema for its OpenClover XML format. Rather than modifying the existing Clover XML reporter to comply with the OpenClover XML schema, thereby breaking backward compatibility, a new OpenClover XML reporter has been introduced.
This new reporter is controlled by the new CLI option, --coverage-openclover, and the new XML configuration element, <openclover>. This code coverage reporter generates XML documents that validate against the OpenClover project's XML schema definition, with one exception: the <testproject> element is not generated.
The existing Clover XML reporter, controlled by the --coverage-clover CLI option and the <clover> XML configuration element, remains unchanged.
This feature is experimental and the generated XML may change to enhance compliance with the OpenClover XML schema definition. Please note that such changes may occur in bugfix or minor releases and could potentially break backwards compatibility.
--with-telemetry CLI option that can be used together with --debug to print debugging information that includes telemetry informationTestCase::provideAdditionalInformation() method can now be used to emit a Test\AdditionalInformationProvided eventTest\AfterLastTestMethodFailed, Test\AfterTestMethodFailed, Test\BeforeFirstTestMethodFailed, Test\BeforeTestMethodFailed, Test\PostConditionFailed, Test\PreConditionFailed events are now emitted instead of Test\AfterLastTestMethodErrored, Test\AfterTestMethodErrored, Test\BeforeFirstTestMethodErrored, Test\BeforeTestMethodErrored, Test\PostConditionErrored, Test\PreConditionErrored when the Throwable extends AssertionFailedError to distinguish between errors and failures triggered in hook methodsTest\PreparationErrored event is now emitted instead of Test\PreparationFailed when the Throwable does not extend AssertionFailedError to distinguish between errors and failures triggered during test preparationTest\PreparationFailed::throwable()#[CoversNothing] and #[Covers*] (or #[Uses*]) are used on a test class#[Covers*] (or #[Uses*]) attribute is used multiple times on a test class#[Covers*] and #[Uses*] attributessetUp(), for example has a #[Test] attribute#[Small], #[Medium], or #[Large] is used on a test classHow to install or update PHPUnit
v12.1.6: PHPUnit 12.1.6
createStubForIntersectionOfInterfaces() is called with a classHow to install or update PHPUnit
v12.1.5: PHPUnit 12.1.5
assertEmpty() and assertNotEmpty() use overly restrictive phpstan-assert empty directivesHow to install or update PHPUnit
v12.1.4: PHPUnit 12.1.4
displayDetailsOnAllIssues attribute on the <phpunit> element of the XML configuration file and --display-all-issues CLI option for controlling whether PHPUnit should display details on all issues that are triggered (default: false)failOnAllIssues attribute on the <phpunit> element of the XML configuration file and --fail-on-all-issues CLI option for controlling whether PHPUnit should fail on all issues that are triggered (default: false)E_STRICT constant%a and %A matches are not ignored from diff when EXPECTF failsHow to install or update PHPUnit
v12.1.3: PHPUnit 12.1.3
memory_get_peak_usage() is now reset immediately before the Test\Prepared event is emitted using memory_reset_peak_usage() so that (memory usage at Test\Finished - memory usage at Test\Prepared) is a better approximation of the memory usage of the testTelemetry\Info now uses peak memory usage instead of memory usage (this affects --log-events-verbose-text)error_log() is not displayed when test failsHow to install or update PHPUnit
v12.1.2: PHPUnit 12.1.2
How to install or update PHPUnit
v12.1.1: PHPUnit 12.1.1
willReturnMap() fails with nullable parameters when their default is null and no argument is passed for themHow to install or update PHPUnit
v12.1.0: PHPUnit 12.1.0
expectErrorLog() for expecting error_log() output#[WithEnvironmentVariable] for setting an environment variable for the duration of a testAfterTestMethodCalled, AfterTestMethodErrored, AfterTestMethodFinished, BeforeTestMethodCalled, BeforeTestMethodErrored, BeforeTestMethodFinished, PostConditionCalled, PostConditionErrored, PostConditionFinished, PreConditionCalled, PreConditionErrored, and PreConditionFinished event value objects now have test() method that returns a value object representing the test method for which the hook method was calledphpunit --warm-coverage-cache before running tests.testClassName() method on the AfterTestMethodCalled, AfterTestMethodErrored, AfterTestMethodFinished, BeforeTestMethodCalled, BeforeTestMethodErrored, BeforeTestMethodFinished, PostConditionCalled, PostConditionErrored, PostConditionFinished, PreConditionCalled, PreConditionErrored, and PreConditionFinished event value objects (use test()->className() instead)How to install or update PHPUnit
v12.0.10: PHPUnit 12.0.10
How to install or update PHPUnit
v12.0.9: PHPUnit 12.0.9
with() on test doubles yields error with static analyzerHow to install or update PHPUnit
v12.0.8: PHPUnit 12.0.8
How to install or update PHPUnit
v12.0.7: PHPUnit 12.0.7
How to install or update PHPUnit
v12.0.6: PHPUnit 12.0.6
$expected and $actual are mixed up in failure description when assertJsonFileEqualsJsonFile() failsHow to install or update PHPUnit
v12.0.5: PHPUnit 12.0.5
How to install or update PHPUnit
v12.0.4: PHPUnit 12.0.4
How to install or update PHPUnit
v12.0.3: PHPUnit 12.0.3
TestCase::__construct() is now declared final (it was annotated with @final before and the announced changed from @final to final for PHPUnit 12 was forgotten)includeUncoveredFiles configuration optionTest\PreparationFailed event is now emitted in addition to a Test\Errored event when an unexpected exception is triggered in a before-test methodTest\Passed event is no longer emitted in addition to a Test\Failed or Test\Errored event when an assertion failure or an unexpected exception is triggered in an after-test methodTestSuite\Finished event is now emitted when a before-first-test method errorsHow to install or update PHPUnit
v12.0.2: PHPUnit 12.0.2
How to install or update PHPUnit
v12.0.1: PHPUnit 12.0.1
Assert::isType(), assertContainsOnly(), assertNotContainsOnly(), and containsOnly()
How to install or update PHPUnit
v12.0.0: PHPUnit 12.0.0
#[CoversClassesThatExtendClass] and #[UsesClassesThatExtendClass]
#[CoversClassesThatImplementInterface] and #[UsesClassesThatImplementInterface]
#[CoversNamespace] and #[UsesNamespace]
#[RequiresEnvironmentVariable]
shortenArraysForExportThreshold is now 10 (limit export of arrays to 10 levels) instead of 0 (do not limit export of arrays)Assert::isType() (was soft-deprecated in PHPUnit 11.5)assertContainsOnly() (was soft-deprecated in PHPUnit 11.5)assertNotContainsOnly() (was soft-deprecated in PHPUnit 11.5)containsOnly() (was soft-deprecated in PHPUnit 11.5)TestCase::iniSet()
TestCase::setLocale()
TestCase::createTestProxy()
TestCase::getMockForAbstractClass()
TestCase::getMockFromWsdl()
TestCase::getMockForTrait()
TestCase::getObjectForTrait()
MockBuilder::enableAutoload() and MockBuilder::disableAutoload()
MockBuilder::allowMockingUnknownTypes() and MockBuilder::disallowMockingUnknownTypes()
MockBuilder::enableProxyingToOriginalMethods(), MockBuilder::disableProxyingToOriginalMethods(), and MockBuilder::setProxyTarget()
MockBuilder::getMockForTrait()
MockBuilder::getMockForAbstractClass()
MockBuilder::enableArgumentCloning() and MockBuilder::disableArgumentCloning()
MockBuilder::addMethods()
method
TestCase methods for creating return stub configuration objectsassertStringNotMatchesFormat() and assertStringNotMatchesFormatFile()
expects() on test stubs--group, --exclude-group, --covers, --uses, and --test-suffix CLI optionsrestrictDeprecations attribute on the <source> element of the XML configuration file#[CoversClass] and #[UsesClass] attributesHow to install or update PHPUnit
v11.5.51: PHPUnit 11.5.51
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.50: PHPUnit 11.5.50
.coverage files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runsLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.49: PHPUnit 11.5.49
Count::getCountOf() for unusal implementations of Iterator or IteratorAggregate
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.48: PHPUnit 11.5.48
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.47: PHPUnit 11.5.47
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.46: PHPUnit 11.5.46
phpunit.phar rebuilt with PHP 8.4 to work around PHP-Scoper issue #1139
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.45: PHPUnit 11.5.45
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.44: PHPUnit 11.5.44
STDOUT when rewind() failsLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.43: PHPUnit 11.5.43
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.42: PHPUnit 11.5.42
failOnPhpunitWarning="false" has no effectLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.41: PHPUnit 11.5.41
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.40: PHPUnit 11.5.40
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.39: PHPUnit 11.5.39
__sleep() and __wakeup() from test double code generation on PHP >= 8.5Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.38: PHPUnit 11.5.38
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.37: PHPUnit 11.5.37
__sleep() method (which will be deprecated in PHP 8.5)Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.36: PHPUnit 11.5.36
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.35: PHPUnit 11.5.35
#[IgnorePhpunitDeprecations] is now considered for test runner deprecations (where applicable)Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.34
v11.5.33: PHPUnit 11.5.33
error_reporting=E_ALL for --check-php-configuration
expectUserDeprecationMessage*() fails when test is run in separate processLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.32: PHPUnit 11.5.32
--check-php-configuration
Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.31: PHPUnit 11.5.31
#[IgnorePhpunitDeprecations] is now considered for test runner deprecations" from PHPUnit 11.5.29)Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.30: PHPUnit 11.5.30
test
SplObjectStorage methods that will be deprecated in PHP 8.5Learn how to install or update PHPUnit 11.5 in the documentation.
v11.5.29: PHPUnit 11.5.29
--check-php-configuration CLI option for checking whether PHP is configured for testing#[IgnorePhpunitDeprecations] is now considered for test runner deprecations (where applicable)#[TestWith] or #[TestWithJson] attributes are now properly reportedDataProviderMethodFinished event is now also emitted when the provided data set has an invalid keyLearn how to install or update PHPUnit 11.5 in the documentation.
v11.5.28: PHPUnit 11.5.28
file attribute of <testClass> node of XML test list can be wrongHow to install or update PHPUnit
v11.5.27: PHPUnit 11.5.27
defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schematest prefixHow to install or update PHPUnit
v11.5.26: PHPUnit 11.5.26
@no-named-arguments leads to static analysis errors for variadic argumentsHow to install or update PHPUnit
v11.5.25: PHPUnit 11.5.25
<testsuite> element is missing required name attributeHow to install or update PHPUnit
v11.5.24: PHPUnit 11.5.24
failOnPhpunitWarning attribute on the <phpunit> element of the XML configuration file and --fail-on-phpunit-warning CLI option for controlling whether PHPUnit should fail on PHPUnit warnings (default: true)--do-not-fail-on-deprecation, --do-not-fail-on-phpunit-warning, --do-not-fail-on-phpunit-deprecation, --do-not-fail-on-empty-test-suite, --do-not-fail-on-incomplete, --do-not-fail-on-notice, --do-not-fail-on-risky, --do-not-fail-on-skipped, and --do-not-fail-on-warning CLI options--do-not-report-useless-tests CLI option as a replacement for --dont-report-useless-tests
--dont-report-useless-tests CLI option (use --do-not-report-useless-tests instead)ExpectationFailedException
How to install or update PHPUnit
v11.5.23: PHPUnit 11.5.23
shortenArraysForExportThreshold XML configuration setting has no effect on all arrays exported for event-related value objectsHow to install or update PHPUnit
v11.5.22: PHPUnit 11.5.22
How to install or update PHPUnit
v11.5.21: PHPUnit 11.5.21
createStubForIntersectionOfInterfaces() is called with a classHow to install or update PHPUnit
v11.5.20: PHPUnit 11.5.20
assertEmpty() and assertNotEmpty() use overly restrictive phpstan-assert empty directivesHow to install or update PHPUnit
v11.5.19: PHPUnit 11.5.19
displayDetailsOnAllIssues attribute on the <phpunit> element of the XML configuration file and --display-all-issues CLI option for controlling whether PHPUnit should display details on all issues that are triggered (default: false)failOnAllIssues attribute on the <phpunit> element of the XML configuration file and --fail-on-all-issues CLI option for controlling whether PHPUnit should fail on all issues that are triggered (default: false)E_STRICT constant%a and %A matches are not ignored from diff when EXPECTF failsHow to install or update PHPUnit
v11.5.18: PHPUnit 11.5.18
memory_get_peak_usage() is now reset immediately before the Test\Prepared event is emitted using memory_reset_peak_usage() so that (memory usage at Test\Finished - memory usage at Test\Prepared) is a better approximation of the memory usage of the testTelemetry\Info now uses peak memory usage instead of memory usage (this affects --log-events-verbose-text)How to install or update PHPUnit
v11.5.17: PHPUnit 11.5.17
How to install or update PHPUnit
v11.5.16: PHPUnit 11.5.16
willReturnMap() fails with nullable parameters when their default is null and no argument is passed for themHow to install or update PHPUnit
v11.5.15: PHPUnit 11.5.15
How to install or update PHPUnit
v11.5.14: PHPUnit 11.5.14
How to install or update PHPUnit
v11.5.13: PHPUnit 11.5.13
How to install or update PHPUnit
v11.5.12: PHPUnit 11.5.12
How to install or update PHPUnit
v11.5.11: PHPUnit 11.5.11
$expected and $actual are mixed up in failure description when assertJsonFileEqualsJsonFile() failsHow to install or update PHPUnit
v11.5.10: PHPUnit 11.5.10
How to install or update PHPUnit
v11.5.9: PHPUnit 11.5.9
How to install or update PHPUnit
v11.5.8: PHPUnit 11.5.8
Test\PreparationFailed event is now emitted in addition to a Test\Errored event when an unexpected exception is triggered in a before-test methodTest\Passed event is no longer emitted in addition to a Test\Failed or Test\Errored event when an assertion failure or an unexpected exception is triggered in an after-test methodTestSuite\Finished event is now emitted when a before-first-test method errorsHow to install or update PHPUnit
v11.5.7: PHPUnit 11.5.7
includeUncoveredFiles configuration option is no longer deprecated--debug outputHow to install or update PHPUnit
v11.5.6: PHPUnit 11.5.6
SourceMapper
string cannot be used in customized TestDox outputHow to install or update PHPUnit
v11.5.5: PHPUnit 11.5.5
How to install or update PHPUnit
v11.5.4: PHPUnit 11.5.4
#[CoversTrait] and #[UsesTrait] attributes is no longer deprecated#[CoversMethod] and #[UsesMethod] attributes is no longer deprecatedSourceMapper to scan all <source/> filesHow to install or update PHPUnit
v11.5.3: PHPUnit 11.5.3
Test\AfterLastTestMethodErrored, Test\AfterTestMethodErrored, Test\BeforeTestMethodErrored, Test\PostConditionErrored, and Test\PreConditionErrored events--list-tests-xml is broken when a group with a numeric name is definedsystem-out element in JUnit XML logfileHow to install or update PHPUnit
v11.5.2: PHPUnit 11.5.2
assertArrayHasKey(), assertArrayNotHasKey(), arrayHasKey(), and ArrayHasKey::__construct() do not support all possible key types--migrate-configuration does not remove beStrictAboutTodoAnnotatedTests attribute from XML configuration fileHow to install or update PHPUnit
v11.5.1: PHPUnit 11.5.1
DefaultResultCache::mergeWith() for merging result cache instancesHow to install or update PHPUnit
v11.5.0: PHPUnit 11.5.0
assertContainsNotOnlyInstancesOf() in the PHPUnit\Framework\Assert class as the inverse of the assertContainsOnlyInstancesOf() methodassertContainsOnlyArray(), assertContainsOnlyBool(), assertContainsOnlyCallable(), assertContainsOnlyFloat(), assertContainsOnlyInt(), assertContainsOnlyIterable(), assertContainsOnlyNull(), assertContainsOnlyNumeric(), assertContainsOnlyObject(), assertContainsOnlyResource(), assertContainsOnlyClosedResource(), assertContainsOnlyScalar(), and assertContainsOnlyString() in the PHPUnit\Framework\Assert class as specialized alternatives for the generic assertContainsOnly() methodassertContainsNotOnlyArray(), assertContainsNotOnlyBool(), assertContainsNotOnlyCallable(), assertContainsNotOnlyFloat(), assertContainsNotOnlyInt(), assertContainsNotOnlyIterable(), assertContainsNotOnlyNull(), assertContainsNotOnlyNumeric(), assertContainsNotOnlyObject(), assertContainsNotOnlyResource(), assertContainsNotOnlyClosedResource(), assertContainsNotOnlyScalar(), and assertContainsNotOnlyString() in the PHPUnit\Framework\Assert class as specialized alternatives for the generic assertNotContainsOnly() methodcontainsOnlyArray(), containsOnlyBool(), containsOnlyCallable(), containsOnlyFloat(), containsOnlyInt(), containsOnlyIterable(), containsOnlyNull(), containsOnlyNumeric(), containsOnlyObject(), containsOnlyResource(), containsOnlyClosedResource(), containsOnlyScalar(), and containsOnlyString() in the PHPUnit\Framework\Assert class as specialized alternatives for the generic containsOnly() methodisArray(), isBool(), isCallable(), isFloat(), isInt(), isIterable(), isNumeric(), isObject(), isResource(), isClosedResource(), isScalar(), isString() in the PHPUnit\Framework\Assert class as specialized alternatives for the generic isType() methodTestRunner\ChildProcessStarted and TestRunner\ChildProcessFinished eventsSKIPIF section of PHPT test in separate process when it is free of side effectsCLEAN section of PHPT test in separate process when it is free of side effects that modify the parent processisType() (use isArray(), isBool(), isCallable(), isFloat(), isInt(), isIterable(), isNull(), isNumeric(), isObject(), isResource(), isClosedResource(), isScalar(), or isString() instead)assertContainsOnly() (use assertContainsOnlyArray(), assertContainsOnlyBool(), assertContainsOnlyCallable(), assertContainsOnlyFloat(), assertContainsOnlyInt(), assertContainsOnlyIterable(), assertContainsOnlyNumeric(), assertContainsOnlyObject(), assertContainsOnlyResource(), assertContainsOnlyClosedResource(), assertContainsOnlyScalar(), or assertContainsOnlyString() instead)assertNotContainsOnly() (use assertContainsNotOnlyArray(), assertContainsNotOnlyBool(), assertContainsNotOnlyCallable(), assertContainsNotOnlyFloat(), assertContainsNotOnlyInt(), assertContainsNotOnlyIterable(), assertContainsNotOnlyNumeric(), assertContainsNotOnlyObject(), assertContainsNotOnlyResource(), assertContainsNotOnlyClosedResource(), assertContainsNotOnlyScalar(), or assertContainsNotOnlyString() instead)containsOnly() (use containsOnlyArray(), containsOnlyBool(), containsOnlyCallable(), containsOnlyFloat(), containsOnlyInt(), containsOnlyIterable(), containsOnlyNumeric(), containsOnlyObject(), containsOnlyResource(), containsOnlyClosedResource(), containsOnlyScalar(), or containsOnlyString() instead)How to install or update PHPUnit
v11.4.4: PHPUnit 11.4.4
ignoreIndirectDeprecations=true suppresses deprecations triggered in test codeHow to install or update PHPUnit
v11.4.3: PHPUnit 11.4.3
assertGreaterThan(), assertGreaterThanOrEqual(), assertLessThan(), and assertLessThanOrEqual()
How to install or update PHPUnit
v11.4.2: PHPUnit 11.4.2
How to install or update PHPUnit
v11.4.1: PHPUnit 11.4.1
StringMatchesFormatDescription constraint to be consistent with PHP's run-tests.php
E_DEPRECATED issuesHow to install or update PHPUnit
v11.4.0: PHPUnit 11.4.0
#[RequiresPhpunitExtension] attributevendor/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--migrate-configuration command no longer replaces vendor/phpunit/phpunit/phpunit.xsd with https://schema.phpunit.de/X.Y/phpunit.xsd
--list-groups now shows how many tests a group contains--list-suites now shows how many tests a test suite containsincludeUncoveredFiles configuration option#[CoversTrait] and #[UsesTrait] attributes#[CoversMethod] and #[UsesMethod] attributes (and respective annotations)How to install or update PHPUnit
v11.3.6: PHPUnit 11.3.6
E_STRICT constant in PHP 8.4trim()med when it contains $ characterHow to install or update PHPUnit
v11.3.5: PHPUnit 11.3.5
static return type declaration is not properly initializedname property on <testsuites> element in JUnit XML logfileCallback throws a TypeError when checking a callable has variadic parametersHow to install or update PHPUnit
v11.3.4: PHPUnit 11.3.4
assertJsonStringEqualsJsonString() considers objects with sequential numeric keys equal to be arraysCallback constraint does not handle variadic arguments correctly when used for mock object expectations$ at the beginning gets truncated when used with a data providerdefault groupHow to install or update PHPUnit
v11.3.3: PHPUnit 11.3.3
failOnPhpunitDeprecation attribute on the <phpunit> element of the XML configuration file and --fail-on-phpunit-deprecation CLI option for controlling whether PHPUnit deprecations should be considered when determining the test runner's shell exit code (default: do not consider)displayDetailsOnPhpunitDeprecations attribute on the <phpunit> element of the XML configuration file and --display-phpunit-deprecations CLI option for controlling whether details on PHPUnit deprecations should be displayed (default: do not display)--fail-on-phpunit-deprecation CLI option or the failOnPhpunitDeprecation="true" attribute on the <phpunit> element of the XML configuration file.--display-phpunit-deprecations CLI option or the displayDetailsOnPhpunitDeprecations attribute on the <phpunit> element of the XML configuration file.How to install or update PHPUnit
v11.3.2: PHPUnit 11.3.2
name property on <testsuites> element in JUnit XML logfile.phpstorm.meta.php file as methods such as TestCase::createStub() use generics / template types for their return types and PhpStorm, for example, uses that information@ operatorHow to install or update PHPUnit
v11.3.1: PHPUnit 11.3.1
How to install or update PHPUnit
v11.3.0: PHPUnit 11.3.0
shortenArraysForExportThreshold attribute on the <phpunit> element of the XML configuration file to limit the export of arrays to a specified number of elements (default: 0 / do not limit the export of arrays)--extension CLI option to register a test runner extension--generate-configuration now limits the export of arrays to 10 elements in order to improve performanceHow to install or update PHPUnit
v11.2.9: PHPUnit 11.2.9
--list-tests and --list-tests-xml CLI options do not report error when data provider method throws exceptionHow to install or update PHPUnit
v11.2.8: PHPUnit 11.2.8
Test\Passed event is not emitted for PHPT tests--coverage-filter CLI option could not be used multiple timesHow to install or update PHPUnit
v11.2.7: PHPUnit 11.2.7
--prefer-lowest CLI option also get recent versions)phpunit.xml are not handled correctly when --generate-configuration is usedHow to install or update PHPUnit
v11.2.6: PHPUnit 11.2.6
How to install or update PHPUnit
v11.2.5: PHPUnit 11.2.5
array_pop() instead of array_shift() for processing Test objects in TestSuite::run() and optimize TestSuite::isEmpty()
How to install or update PHPUnit
v11.2.4: PHPUnit 11.2.4
TestCase objects early that use a data providerHow to install or update PHPUnit
v11.2.3: PHPUnit 11.2.3
debug_backtrace()
How to install or update PHPUnit
v11.2.2: PHPUnit 11.2.2
TestCase object after its test was runHow to install or update PHPUnit
v11.2.1: PHPUnit 11.2.1
cacheDirectory attribute from <coverage> element when migrating from PHPUnit 11.1 to PHPUnit 11.2How to install or update PHPUnit
v11.2.0: PHPUnit 11.2.0
#[CoversTrait] and #[UsesTrait] attributesreadonly classesassertObjectNotEquals()
#[CoversClass] and #[UsesClass] attributesHow to install or update PHPUnit
v11.1.3: PHPUnit 11.1.3
How to install or update PHPUnit
v11.1.2: PHPUnit 11.1.2
@testWith annotation may generate PHP Warning: Uninitialized string offset 0
#[CoversMethod] attribute is not considered for risky test checkHow to install or update PHPUnit
v11.1.1: PHPUnit 11.1.1
#[CoversClass] and #[UsesClass] attributes can no longer target traitsHow to install or update PHPUnit
v11.1.0: PHPUnit 11.1.0
#[DisableReturnValueGenerationForTestDoubles] attribute for disabling return value generation for test doubles created using createMock(), createMockForIntersectionOfInterfaces(), createPartialMock(), createStub(), and createStubForIntersectionOfInterfaces()
#[CoversMethod] and #[UsesMethod] attributes for more fine-grained code coverage targeting--filter, --exclude-filter, --group, and --exclude-group when listing tests using --list-tests and --list-tests-xml as well as listing groups with --list-groups
#[CoversClass] and #[UsesClass] attributes--only-summary-for-coverage-text CLI option to reduce the code coverage report in text format to a summary--show-uncovered-for-coverage-text CLI option to expand the code coverage report in text format to include a list of uncovered files--generate-configuration now generates <source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true"> instead of <source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
--group, --exclude-group, --covers, --uses, and --test-suffix CLI options to be used multiple timesPHPUnit\Framework\TestCase::__construct() is now annotated to be final in preparation for declaring it final in PHPUnit 12DeprecationTriggered, ErrorTriggered, NoticeTriggered, PhpDeprecationTriggered, PhpNoticeTriggered, PhpWarningTriggered, and WarningTriggered events are represented as textrestrictDeprecations attribute on the <source> element of the XML configuration file is now deprecated in favor of the ignoreSelfDeprecations, ignoreDirectDeprecations, and ignoreIndirectDeprecations attributes--group, --exclude-group, --covers, --uses, and --test-suffix CLI optionsHow to install or update PHPUnit
v11.0.10: PHPUnit 11.0.10
PHPUnitPHAR instead of just PHPUnit for the PHAR distribution of PHPUnitHow to install or update PHPUnit
v11.0.9: PHPUnit 11.0.9
proc_open() if not really neededHow to install or update PHPUnit
v11.0.8: PHPUnit 11.0.8
How to install or update PHPUnit
v11.0.7: PHPUnit 11.0.7
Groups::groups()
NamePrettifier::prettifyTestMethodName()
NamePrettifier::prettifyTestMethodName() once againHow to install or update PHPUnit
v11.0.6: PHPUnit 11.0.6
NamePrettifier::prettifyTestMethodName()
NamePrettifier::prettifyTestMethodName()
TestRunner::runTestWithTimeout()
Telemetry\System::snapshot()
ExecutionOrderDependency::getTarget() callNamePrettifier::prettifyTestMethodName()
assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys() does not correctly handle array order-d CLI option multiple times triggers warningHow to install or update PHPUnit
v11.0.5: PHPUnit 11.0.5
HRTime::duration() throws InvalidArgumentException
--exclude-filter CLI option does not workHow to install or update PHPUnit
v11.0.4
v11.0.3
v11.0.2
v11.0.1
v11.0.0
v10.5.63: PHPUnit 10.5.63
Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.62: PHPUnit 10.5.62
.coverage files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runsLearn how to install or update PHPUnit 10.5 in the documentation.
v10.5.61: PHPUnit 10.5.61
PHPUnit\Framework\MockObject exceptions are now subtypes of PHPUnit\Exception
Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.60: PHPUnit 10.5.60
phpunit.phar rebuilt with PHP 8.4 to work around PHP-Scoper issue #1139
Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.59: PHPUnit 10.5.59
PHPUnit\Runner\TestSuiteSorter that was only used in the tests for this classLearn how to install or update PHPUnit 10.5 in the documentation.
v10.5.58: PHPUnit 10.5.58
failOnPhpunitWarning="false" has no effectLearn how to install or update PHPUnit 10.5 in the documentation.
v10.5.57: PHPUnit 10.5.57
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 10.5 in the documentation.
v10.5.56: PHPUnit 10.5.56
phpunit.phar rebuilt with updated dependenciesLearn how to install or update PHPUnit 10.5 in the documentation.
v10.5.55: PHPUnit 10.5.55
__sleep() and __wakeup() from test double code generation on PHP >= 8.5Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.54: PHPUnit 10.5.54
__sleep() method (which will be deprecated in PHP 8.5)Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.53
v10.5.52: PHPUnit 10.5.52
error_reporting=E_ALL for --check-php-configuration
Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.51: PHPUnit 10.5.51
--check-php-configuration
Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.50: PHPUnit 10.5.50
test
SplObjectStorage methods that will be deprecated in PHP 8.5Learn how to install or update PHPUnit 10.5 in the documentation.
v10.5.49: PHPUnit 10.5.49
--check-php-configuration CLI option for checking whether PHP is configured for testing#[TestWith] or #[TestWithJson] attributes are now properly reportedLearn how to install or update PHPUnit 10.5 in the documentation.
v10.5.48: PHPUnit 10.5.48
defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schemaHow to install or update PHPUnit
v10.5.47: PHPUnit 10.5.47
failOnPhpunitWarning attribute on the <phpunit> element of the XML configuration file and --fail-on-phpunit-warning CLI option for controlling whether PHPUnit should fail on PHPUnit warnings (default: true)--do-not-fail-on-deprecation, --do-not-fail-on-phpunit-warning, --do-not-fail-on-phpunit-deprecation, --do-not-fail-on-empty-test-suite, --do-not-fail-on-incomplete, --do-not-fail-on-notice, --do-not-fail-on-risky, --do-not-fail-on-skipped, and --do-not-fail-on-warning CLI options--do-not-report-useless-tests CLI option as a replacement for --dont-report-useless-tests
--dont-report-useless-tests CLI option (use --do-not-report-useless-tests instead)ExpectationFailedException
How to install or update PHPUnit
v10.5.46: PHPUnit 10.5.46
displayDetailsOnAllIssues attribute on the <phpunit> element of the XML configuration file and --display-all-issues CLI option for controlling whether PHPUnit should display details on all issues that are triggered (default: false)failOnAllIssues attribute on the <phpunit> element of the XML configuration file and --fail-on-all-issues CLI option for controlling whether PHPUnit should fail on all issues that are triggered (default: false)E_STRICT constantHow to install or update PHPUnit
v10.5.45: PHPUnit 10.5.45
--debug outputHow to install or update PHPUnit
v10.5.44: PHPUnit 10.5.44
string cannot be used in customized TestDox outputHow to install or update PHPUnit
v10.5.43: PHPUnit 10.5.43
How to install or update PHPUnit
v10.5.42: PHPUnit 10.5.42
SourceMapper to scan all <source/> filesHow to install or update PHPUnit
v10.5.41: PHPUnit 10.5.41
Test\AfterLastTestMethodErrored, Test\AfterTestMethodErrored, Test\BeforeTestMethodErrored, Test\PostConditionErrored, and Test\PreConditionErrored eventssystem-out element in JUnit XML logfileHow to install or update PHPUnit
v10.5.40: PHPUnit 10.5.40
assertArrayHasKey(), assertArrayNotHasKey(), arrayHasKey(), and ArrayHasKey::__construct() do not support all possible key types--migrate-configuration does not remove beStrictAboutTodoAnnotatedTests attribute from XML configuration fileHow to install or update PHPUnit
v10.5.39: PHPUnit 10.5.39
DefaultResultCache::mergeWith() for merging result cache instancesHow to install or update PHPUnit
v10.5.38: PHPUnit 10.5.38
How to install or update PHPUnit
v10.5.37: PHPUnit 10.5.37
How to install or update PHPUnit
v10.5.36: PHPUnit 10.5.36
StringMatchesFormatDescription constraint to be consistent with PHP's run-tests.php
PHPUnit\Framework\Exception does not handle string error codes (PDOException with error code 'HY000', for example)How to install or update PHPUnit
v10.5.35: PHPUnit 10.5.35
E_STRICT constant in PHP 8.4trim()med when it contains $ characterHow to install or update PHPUnit
v10.5.34: PHPUnit 10.5.34
name property on <testsuites> element in JUnit XML logfileCallback throws a TypeError when checking a callable has variadic parametersHow to install or update PHPUnit
v10.5.33: PHPUnit 10.5.33
assertJsonStringEqualsJsonString() considers objects with sequential numeric keys equal to be arraysCallback constraint does not handle variadic arguments correctly when used for mock object expectations$ at the beginning gets truncated when used with a data providerHow to install or update PHPUnit
v10.5.32: PHPUnit 10.5.32
failOnPhpunitDeprecation attribute on the <phpunit> element of the XML configuration file and --fail-on-phpunit-deprecation CLI option for controlling whether PHPUnit deprecations should be considered when determining the test runner's shell exit code (default: do not consider)displayDetailsOnPhpunitDeprecations attribute on the <phpunit> element of the XML configuration file and --display-phpunit-deprecations CLI option for controlling whether details on PHPUnit deprecations should be displayed (default: do not display)--fail-on-phpunit-deprecation CLI option or the failOnPhpunitDeprecation="true" attribute on the <phpunit> element of the XML configuration file.--display-phpunit-deprecations CLI option or the displayDetailsOnPhpunitDeprecations attribute on the <phpunit> element of the XML configuration file.How to install or update PHPUnit
v10.5.31: PHPUnit 10.5.31
name property on <testsuites> element in JUnit XML logfile.phpstorm.meta.php file as methods such as TestCase::createStub() use generics / template types for their return types and PhpStorm, for example, uses that information@ operatorHow to install or update PHPUnit
v10.5.30: PHPUnit 10.5.30
How to install or update PHPUnit
v10.5.29: PHPUnit 10.5.29
--list-tests and --list-tests-xml CLI options do not report error when data provider method throws exceptionHow to install or update PHPUnit
v10.5.28: PHPUnit 10.5.28
Test\Passed event is not emitted for PHPT tests--coverage-filter CLI option could not be used multiple timesHow to install or update PHPUnit
v10.5.27: PHPUnit 10.5.27
--prefer-lowest CLI option also get recent versions)phpunit.xml are not handled correctly when --generate-configuration is usedHow to install or update PHPUnit
v10.5.26: PHPUnit 10.5.26
--only-summary-for-coverage-text CLI option to reduce the code coverage report in text format to a summary--show-uncovered-for-coverage-text CLI option to expand the code coverage report in text format to include a list of uncovered filesHow to install or update PHPUnit
v10.5.25: PHPUnit 10.5.25
How to install or update PHPUnit
v10.5.24: PHPUnit 10.5.24
array_pop() instead of array_shift() for processing Test objects in TestSuite::run() and optimize TestSuite::isEmpty()
How to install or update PHPUnit
v10.5.23: PHPUnit 10.5.23
TestCase objects early that use a data providerHow to install or update PHPUnit
v10.5.22: PHPUnit 10.5.22
debug_backtrace()
How to install or update PHPUnit
v10.5.21: PHPUnit 10.5.21
TestCase object after its test was runHow to install or update PHPUnit
v10.5.20: PHPUnit 10.5.20
How to install or update PHPUnit
v10.5.19: PHPUnit 10.5.19
method() on a test stub created using createStubForIntersectionOfInterfaces() throws an unexpected exceptionHow to install or update PHPUnit
v10.5.18: PHPUnit 10.5.18
@testWith annotation may generate PHP Warning: Uninitialized string offset 0
How to install or update PHPUnit
v10.5.17: PHPUnit 10.5.17
PHPUnitPHAR instead of just PHPUnit for the PHAR distribution of PHPUnitHow to install or update PHPUnit
v10.5.16: PHPUnit 10.5.16
proc_open() if not really neededHow to install or update PHPUnit
v10.5.15: PHPUnit 10.5.15
How to install or update PHPUnit
v10.5.14: PHPUnit 10.5.14
Groups::groups()
NamePrettifier::prettifyTestMethodName()
NamePrettifier::prettifyTestMethodName() once againHow to install or update PHPUnit
v10.5.13: PHPUnit 10.5.13
NamePrettifier::prettifyTestMethodName()
NamePrettifier::prettifyTestMethodName()
TestRunner::runTestWithTimeout()
Telemetry\System::snapshot()
ExecutionOrderDependency::getTarget() callNamePrettifier::prettifyTestMethodName()
-d CLI option multiple times triggers warningHow to install or update PHPUnit
v10.5.12: PHPUnit 10.5.12
HRTime::duration() throws InvalidArgumentException
How to install or update PHPUnit
v10.5.11
v10.5.10
v10.5.9
v10.5.8
v10.5.7
v10.5.6
v10.5.5
v10.5.4
v10.5.3
v10.5.2
v10.5.1
v10.5.0
v10.4.2
v10.4.1
v10.4.0
v10.3.5
v10.3.4
v10.3.3
v10.3.2
v10.3.1
v10.3.0
v10.2.7
v10.2.6
v10.2.5
v10.2.4
v10.2.3
v10.2.2
v10.2.1
v10.2.0
v10.1.3
v10.1.2
v10.1.1
v10.1.0
v10.0.19
v10.0.18
v10.0.17
v10.0.16
v10.0.15
v10.0.14
v10.0.13
v10.0.12
v10.0.11
v10.0.10
v10.0.9
v10.0.8
v10.0.7
v10.0.6
v10.0.5
v10.0.4
v10.0.3
v10.0.2
v10.0.1
v10.0.0
This MR has been generated by Renovate Bot.
Chris Burgess (b4262f4b) at 18 Dec 17:42
Merge branch 'declare-return-types' into 'main'
Chris Burgess (b4262f4b) at 18 Dec 17:39
Merge branch 'declare-return-types' into 'main'
... and 1 more commit
This adds return types to the DriverFactory implementation where they might be coming up in the future.
Adding return types "bottom up" from here is backwards compatible in PHP (except for people extending this class, which is probably not a real-life use case).
LGTM, thanks @mpdude
cross-reference https://github.com/FriendsOfBehat/MinkExtension/issues/43
This adds return types to the DriverFactory implementation where they might be coming up in the future.
Adding return types "bottom up" from here is backwards compatible in PHP (except for people extending this class, which is probably not a real-life use case).
@xurizaemon Do you think you could tag a 1.4.1 release with this change?
Symfony 8 added return types to all interfaces and classes. This leaks through the Behat API in places where Behat used classes from Symfony, for example the Event Dispatcher implementation or the \Behat\Testwork\ServiceContainer\Extension interface which extends \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface.
The Behat maintainers work on creating a new Behat release supporting Symfony 8, but it will also affect extensions like this one (https://github.com/Behat/Behat/pull/1687).
Chris Burgess (2e9475d5) at 05 Dec 10:51
Merge branch 'nprepare-behat-4' into 'main'
... and 1 more commit
Thanks!
I have rebased this, but removed the composer.json compatibility declaration for behat/behat ^4.0, since that is not yet a thing.
The one-line change made here can be applied right now, it is compatible with current Behat and Symfony releases.
I've made a small change (!21 (merged)) which should fix this for you - please rebase?
The CI configuration was requiring a "docker" tag on the CI runner, and the runner no longer had that tag applied.
Chris Burgess (f55b15a9) at 04 Dec 18:11
Chris Burgess (ae0030c1) at 04 Dec 18:11
Merge branch 'ci-update-php' into 'main'
... and 1 more commit
Updated tested PHP versions to match dmore/chrome-mink-driver
Updated tested PHP versions to match dmore/chrome-mink-driver