How To Install php-yoast-phpunit-polyfills on Fedora 36

In this tutorial we learn how to install php-yoast-phpunit-polyfills in Fedora 36. php-yoast-phpunit-polyfills is Set of polyfills for changed PHPUnit functionality

Introduction

In this tutorial we learn how to install php-yoast-phpunit-polyfills on Fedora 36.

What is php-yoast-phpunit-polyfills

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

We can use yum or dnf to install php-yoast-phpunit-polyfills on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-yoast-phpunit-polyfills.

Install php-yoast-phpunit-polyfills on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-yoast-phpunit-polyfills using dnf by running the following command:

sudo dnf -y install php-yoast-phpunit-polyfills

Install php-yoast-phpunit-polyfills on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-yoast-phpunit-polyfills using yum by running the following command:

sudo yum -y install php-yoast-phpunit-polyfills

How To Uninstall php-yoast-phpunit-polyfills on Fedora 36

To uninstall only the php-yoast-phpunit-polyfills package we can use the following command:

sudo dnf remove php-yoast-phpunit-polyfills

php-yoast-phpunit-polyfills Package Contents on Fedora 36

/usr/share/doc/php-yoast-phpunit-polyfills
/usr/share/doc/php-yoast-phpunit-polyfills/CHANGELOG.md
/usr/share/doc/php-yoast-phpunit-polyfills/README.md
/usr/share/doc/php-yoast-phpunit-polyfills/composer.json
/usr/share/licenses/php-yoast-phpunit-polyfills
/usr/share/licenses/php-yoast-phpunit-polyfills/LICENSE
/usr/share/php/Yoast
/usr/share/php/Yoast/PHPUnitPolyfills
/usr/share/php/Yoast/PHPUnitPolyfills/Exceptions
/usr/share/php/Yoast/PHPUnitPolyfills/Exceptions/Error.php
/usr/share/php/Yoast/PHPUnitPolyfills/Exceptions/InvalidComparisonMethodException.php
/usr/share/php/Yoast/PHPUnitPolyfills/Exceptions/TypeError.php
/usr/share/php/Yoast/PHPUnitPolyfills/Helpers
/usr/share/php/Yoast/PHPUnitPolyfills/Helpers/AssertAttributeHelper.php
/usr/share/php/Yoast/PHPUnitPolyfills/Helpers/ResourceHelper.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertClosedResource.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertClosedResource_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertEqualsSpecializations.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertEqualsSpecializations_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertFileDirectory.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertFileDirectory_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertFileEqualsSpecializations.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertFileEqualsSpecializations_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertIsType.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertIsType_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertNumericType.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertNumericType_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertObjectEquals.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertObjectEquals_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertStringContains.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertStringContains_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertionRenames.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/AssertionRenames_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/EqualToSpecializations.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/EqualToSpecializations_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectException.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectExceptionMessageMatches.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectExceptionMessageMatches_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectExceptionObject.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectExceptionObject_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectException_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectPHPException.php
/usr/share/php/Yoast/PHPUnitPolyfills/Polyfills/ExpectPHPException_Empty.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestCases
/usr/share/php/Yoast/PHPUnitPolyfills/TestCases/TestCasePHPUnitGte8.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestCases/TestCasePHPUnitLte7.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestCases/XTestCase.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestListeners
/usr/share/php/Yoast/PHPUnitPolyfills/TestListeners/TestListenerDefaultImplementationPHPUnit6.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestListeners/TestListenerDefaultImplementationPHPUnitGte7.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestListeners/TestListenerDefaultImplementationPHPUnitLte5.php
/usr/share/php/Yoast/PHPUnitPolyfills/TestListeners/TestListenerSnakeCaseMethods.php
/usr/share/php/Yoast/PHPUnitPolyfills/autoload.php

References

Summary

In this tutorial we learn how to install php-yoast-phpunit-polyfills on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).