PHPUnit-Polyfills icon indicating copy to clipboard operation
PHPUnit-Polyfills copied to clipboard

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

Results 7 PHPUnit-Polyfills issues
Sort by recently updated
recently updated
newest added

Since PHP 7.3 I'm seeing this warning: ``` PHPUnit\Framework\TestCase::prophesize() is deprecated and will be removed in PHPUnit 10. Please use the trait provided by phpspec/prophecy-phpunit. ``` I can't just require...

As per https://github.com/sebastianbergmann/phpunit/pull/3687, the `PHPUnit\Framework\MockObject\MockBuilder::setMethods()` method was deprecated (soft in PHPUnit 8, hard in PHPUnit 9) and scheduled for removal in PHPUnit 10. It was being replaced by `onlyMethods()` and...

Type: enhancement

The `Assert::assertEqualXMLStructure()` assertion was deprecated in PHPUnit 9.1.0 and will be removed in PHPUnit 10.0.0 without replacement. Polyfilling this would require copying most of the code which will be removed...

Type: enhancement

PHPUnit 11 has just been released. As this is a major release with breaking changes, upgrading should be a done deliberately and managed. This effectively means that upgrading to a...

Type: enhancement
Type: breaking change
Feature: polyfills
Feature: helpers

PHPUnit 10 brings both several changes to the configuration file and a misfeature of causing `phpunit` to exit with a non-zero status if the config file does not strictly validate....

Type: question

Handle the change from TestListener to Event system for the TestListener Polyfill. > As for the TestListeners... while I have the principle of it working without issues, the trouble I'm...

Type: enhancement
Feature: testlistener

See #213 Short version: the PHPUnit docs no longer have a "latest" permalink version, so whenever a new PHPUnit minor is released, the links in the README will need to...

Type: documentation
Type: chores/QA