How To Install php-digitalsandwich-Phake on Fedora 36

In this tutorial we learn how to install php-digitalsandwich-Phake in Fedora 36. php-digitalsandwich-Phake is Phake is a PHP mocking framework that is based on Mockito

Introduction

In this tutorial we learn how to install php-digitalsandwich-Phake on Fedora 36.

What is php-digitalsandwich-Phake

Phake is a framework for PHP that aims to provide mock objects, test doubles and method stubs. Phake was inspired by a lack of flexibility and ease of use in the current mocking frameworks combined with a recent experience with Mockito for Java.

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

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

sudo dnf -y install php-digitalsandwich-Phake

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

sudo yum -y install php-digitalsandwich-Phake

How To Uninstall php-digitalsandwich-Phake on Fedora 36

To uninstall only the php-digitalsandwich-Phake package we can use the following command:

sudo dnf remove php-digitalsandwich-Phake

php-digitalsandwich-Phake Package Contents on Fedora 36

/usr/share/pear/Phake
/usr/share/pear/Phake.php
/usr/share/pear/Phake/CallRecorder
/usr/share/pear/Phake/CallRecorder/Call.php
/usr/share/pear/Phake/CallRecorder/CallExpectation.php
/usr/share/pear/Phake/CallRecorder/CallInfo.php
/usr/share/pear/Phake/CallRecorder/IVerificationFailureHandler.php
/usr/share/pear/Phake/CallRecorder/IVerifierMode.php
/usr/share/pear/Phake/CallRecorder/OrderVerifier.php
/usr/share/pear/Phake/CallRecorder/Position.php
/usr/share/pear/Phake/CallRecorder/Recorder.php
/usr/share/pear/Phake/CallRecorder/Verifier.php
/usr/share/pear/Phake/CallRecorder/VerifierMode
/usr/share/pear/Phake/CallRecorder/VerifierMode/AtLeast.php
/usr/share/pear/Phake/CallRecorder/VerifierMode/AtMost.php
/usr/share/pear/Phake/CallRecorder/VerifierMode/Result.php
/usr/share/pear/Phake/CallRecorder/VerifierMode/Times.php
/usr/share/pear/Phake/CallRecorder/VerifierResult.php
/usr/share/pear/Phake/ClassGenerator
/usr/share/pear/Phake/ClassGenerator/EvalLoader.php
/usr/share/pear/Phake/ClassGenerator/FileLoader.php
/usr/share/pear/Phake/ClassGenerator/ILoader.php
/usr/share/pear/Phake/ClassGenerator/InvocationHandler
/usr/share/pear/Phake/ClassGenerator/InvocationHandler/CallRecorder.php
/usr/share/pear/Phake/ClassGenerator/InvocationHandler/Composite.php
/usr/share/pear/Phake/ClassGenerator/InvocationHandler/FrozenObjectCheck.php
/usr/share/pear/Phake/ClassGenerator/InvocationHandler/IInvocationHandler.php
/usr/share/pear/Phake/ClassGenerator/InvocationHandler/MagicCallRecorder.php
/usr/share/pear/Phake/ClassGenerator/InvocationHandler/StubCaller.php
/usr/share/pear/Phake/ClassGenerator/MockClass.php
/usr/share/pear/Phake/Client
/usr/share/pear/Phake/Client/Default.php
/usr/share/pear/Phake/Client/IClient.php
/usr/share/pear/Phake/Client/PHPUnit.php
/usr/share/pear/Phake/Exception
/usr/share/pear/Phake/Exception/VerificationException.php
/usr/share/pear/Phake/Facade.php
/usr/share/pear/Phake/IMock.php
/usr/share/pear/Phake/Matchers
/usr/share/pear/Phake/Matchers/AbstractMethodMatcher.php
/usr/share/pear/Phake/Matchers/AnyParameters.php
/usr/share/pear/Phake/Matchers/ArgumentCaptor.php
/usr/share/pear/Phake/Matchers/EqualsMatcher.php
/usr/share/pear/Phake/Matchers/Factory.php
/usr/share/pear/Phake/Matchers/HamcrestMatcherAdapter.php
/usr/share/pear/Phake/Matchers/IArgumentMatcher.php
/usr/share/pear/Phake/Matchers/IMethodMatcher.php
/usr/share/pear/Phake/Matchers/MethodMatcher.php
/usr/share/pear/Phake/Matchers/PHPUnitConstraintAdapter.php
/usr/share/pear/Phake/Matchers/ReferenceSetter.php
/usr/share/pear/Phake/Mock
/usr/share/pear/Phake/Mock/Freezer.php
/usr/share/pear/Phake/Mock/Resetter.php
/usr/share/pear/Phake/MockReader.php
/usr/share/pear/Phake/PHPUnit
/usr/share/pear/Phake/PHPUnit/VerifierResultConstraint.php
/usr/share/pear/Phake/PHPUnit/VerifierResultConstraintV3d6.php
/usr/share/pear/Phake/Proxies
/usr/share/pear/Phake/Proxies/AnswerBinderProxy.php
/usr/share/pear/Phake/Proxies/AnswerCollectionProxy.php
/usr/share/pear/Phake/Proxies/CallStubberProxy.php
/usr/share/pear/Phake/Proxies/CallVerifierProxy.php
/usr/share/pear/Phake/Proxies/StubberProxy.php
/usr/share/pear/Phake/Proxies/VerifierProxy.php
/usr/share/pear/Phake/String
/usr/share/pear/Phake/String/Converter.php
/usr/share/pear/Phake/Stubber
/usr/share/pear/Phake/Stubber/AnswerBinder.php
/usr/share/pear/Phake/Stubber/AnswerCollection.php
/usr/share/pear/Phake/Stubber/Answers
/usr/share/pear/Phake/Stubber/Answers/ExceptionAnswer.php
/usr/share/pear/Phake/Stubber/Answers/IDelegator.php
/usr/share/pear/Phake/Stubber/Answers/LambdaAnswer.php
/usr/share/pear/Phake/Stubber/Answers/ParentDelegate.php
/usr/share/pear/Phake/Stubber/Answers/StaticAnswer.php
/usr/share/pear/Phake/Stubber/IAnswer.php
/usr/share/pear/Phake/Stubber/IAnswerBinder.php
/usr/share/pear/Phake/Stubber/IAnswerContainer.php
/usr/share/pear/Phake/Stubber/IAnswerDelegate.php
/usr/share/pear/Phake/Stubber/SelfBindingAnswerBinder.php
/usr/share/pear/Phake/Stubber/StubMapper.php
/var/lib/pear/pkgxml/php-digitalsandwich-Phake.xml

References

Summary

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