How To Install php-mock-integration2 on Fedora 36

In this tutorial we learn how to install php-mock-integration2 in Fedora 36. php-mock-integration2 is Integration package for PHP-Mock

Introduction

In this tutorial we learn how to install php-mock-integration2 on Fedora 36.

What is php-mock-integration2

This is a support package for PHP-Mock integration into other frameworks.

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

Install php-mock-integration2 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-mock-integration2 using dnf by running the following command:

sudo dnf -y install php-mock-integration2

Install php-mock-integration2 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-mock-integration2 using yum by running the following command:

sudo yum -y install php-mock-integration2

How To Uninstall php-mock-integration2 on Fedora 36

To uninstall only the php-mock-integration2 package we can use the following command:

sudo dnf remove php-mock-integration2

php-mock-integration2 Package Contents on Fedora 36

/usr/share/doc/php-mock-integration2
/usr/share/doc/php-mock-integration2/README.md
/usr/share/doc/php-mock-integration2/composer.json
/usr/share/licenses/php-mock-integration2
/usr/share/licenses/php-mock-integration2/LICENSE
/usr/share/php/phpmock2/integration
/usr/share/php/phpmock2/integration/MockDelegateFunction.tpl
/usr/share/php/phpmock2/integration/MockDelegateFunctionBuilder.php

References

Summary

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