Registry / testing / yoast-phpunit-polyfills

yoast-phpunit-polyfills

JSON →
library4.0.0phppackagistunverified

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

composer require yoast/phpunit-polyfills
INSTALL
IMPORT
SIG · YOAST-PHPUNIT-POLY
Y
yoast-phpunit-polyfills
testingphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AssertEquals
use Yoast\PHPUnitPolyfills\Polyfills\AssertEquals;

Use the AssertEquals polyfill in a PHPUnit test case.

use Yoast\PHPUnitPolyfills\Polyfills\AssertEquals; class MyTest extends TestCase { use AssertEquals; }
Debug
Known issues
breakingRequires PHP 7.2+ and PHPUnit 8.5+.
fix
Ensure PHP 7.2+ and PHPUnit 8.5+ are installed.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
46
Meta
1
Perplexity
1
OpenAI (training)
1
Resources
yoast-phpunit-polyfills — pip install yoast-phpunit-polyfills · libregistry