PHP Package: yoast/phpunit-polyfills

This PHP library provides polyfills for PHPUnit to ensure compatibility with older PHP versions and enhance testing capabilities.

Current Version: 4.0.0
Last Updated: 2025-02-09
PHP Requirement: >=7.1
Dependencies: phpunit/phpunit, symfony/polyfill-php72, symfony/polyfill-php73
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHPUnit Polyfills is a comprehensive library that offers backward compatibility for PHPUnit on older PHP versions, enabling developers to write and run tests seamlessly. It enhances testing capabilities by providing a rich set of utilities and functions that streamline the testing process. With PHPUnit Polyfills, developers can ensure their code is robust and reliable across different PHP environments.

🔗 View on GitHub

Download Latest Version: 4.0.0

Download Download v4.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/yoast/phpunit-polyfills/4.0.0/autoload.php';

use PHPUnit\Util\Test;
use PHPUnit\Framework\TestCase;
use Symfony\Polyfill\Php72\Php72;
use Symfony\Polyfill\Php73\Php73;


$obj = new PHPUnit\Util\Test();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.