{"id":86745,"library":"yoast-phpunit-polyfills","title":"Yoast PHPUnit Polyfills","description":"Set of polyfills for changed PHPUnit functionality to allow creating PHPUnit cross-version compatible tests.","status":"active","version":"4.0.0","language":"php","source_language":null,"source_url":"https://github.com/Yoast/PHPUnit-Polyfills","tags":["phpunit","polyfills","testing","compatibility"],"install":[{"cmd":"composer require yoast/phpunit-polyfills","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"AssertEquals","correct":"use Yoast\\PHPUnitPolyfills\\Polyfills\\AssertEquals;"}],"quickstart":{"code":"use Yoast\\PHPUnitPolyfills\\Polyfills\\AssertEquals;\n\nclass MyTest extends TestCase {\n    use AssertEquals;\n}","lang":"php","description":"Use the AssertEquals polyfill in a PHPUnit test case."},"warnings":[{"fix":"Ensure PHP 7.2+ and PHPUnit 8.5+ are installed.","message":"Requires PHP 7.2+ and PHPUnit 8.5+.","severity":"breaking","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'allow':12 'chang':8 'compat':18,23 'creat':13 'cross':16 'cross-vers':15 'function':10 'phpunit':2,9,14,20 'polyfil':3,6,21 'set':4 'test':19,22 'version':17 'yoast':1","created_at":"2026-06-19T08:07:16.116654+00:00","updated_at":"2026-06-19T08:07:16.116654+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Yoast/PHPUnit-Polyfills","github":"https://github.com/Yoast/PHPUnit-Polyfills","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}