How To Install php-phpspec-prophecy-phpunit on Fedora 36
Introduction
In this tutorial we learn how to install php-phpspec-prophecy-phpunit
on Fedora 36.
What is php-phpspec-prophecy-phpunit
Prophecy PhpUnit integrates the Prophecy mocking library with PHPUnit to provide an easier mocking in your testsuite. Autoloader
We can use yum
or dnf
to install php-phpspec-prophecy-phpunit
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-phpspec-prophecy-phpunit.
Install php-phpspec-prophecy-phpunit 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-phpspec-prophecy-phpunit
using dnf
by running the following command:
sudo dnf -y install php-phpspec-prophecy-phpunit
Install php-phpspec-prophecy-phpunit 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-phpspec-prophecy-phpunit
using yum
by running the following command:
sudo yum -y install php-phpspec-prophecy-phpunit
How To Uninstall php-phpspec-prophecy-phpunit on Fedora 36
To uninstall only the php-phpspec-prophecy-phpunit
package we can use the following command:
sudo dnf remove php-phpspec-prophecy-phpunit
php-phpspec-prophecy-phpunit Package Contents on Fedora 36
/usr/share/doc/php-phpspec-prophecy-phpunit
/usr/share/doc/php-phpspec-prophecy-phpunit/CHANGES.md
/usr/share/doc/php-phpspec-prophecy-phpunit/CONTRIBUTING.md
/usr/share/doc/php-phpspec-prophecy-phpunit/README.md
/usr/share/doc/php-phpspec-prophecy-phpunit/composer.json
/usr/share/licenses/php-phpspec-prophecy-phpunit
/usr/share/licenses/php-phpspec-prophecy-phpunit/LICENSE
/usr/share/php/Prophecy/PhpUnit
/usr/share/php/Prophecy/PhpUnit/ProphecyTrait.php
/usr/share/php/Prophecy/PhpUnit/autoload.php
References
Summary
In this tutorial we learn how to install php-phpspec-prophecy-phpunit
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).