How To Install php-phpspec-prophecy on Fedora 36
Introduction
In this tutorial we learn how to install php-phpspec-prophecy
on Fedora 36.
What is php-phpspec-prophecy
Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking framework. Though initially it was created to fulfil phpspec2 needs, it is flexible enough to be used inside any testing framework out there with minimal effort.
We can use yum
or dnf
to install php-phpspec-prophecy
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-phpspec-prophecy.
Install php-phpspec-prophecy 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
using dnf
by running the following command:
sudo dnf -y install php-phpspec-prophecy
Install php-phpspec-prophecy 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
using yum
by running the following command:
sudo yum -y install php-phpspec-prophecy
How To Uninstall php-phpspec-prophecy on Fedora 36
To uninstall only the php-phpspec-prophecy
package we can use the following command:
sudo dnf remove php-phpspec-prophecy
php-phpspec-prophecy Package Contents on Fedora 36
/usr/share/doc/php-phpspec-prophecy
/usr/share/doc/php-phpspec-prophecy/CHANGES.md
/usr/share/doc/php-phpspec-prophecy/CONTRIBUTING.md
/usr/share/doc/php-phpspec-prophecy/README.md
/usr/share/doc/php-phpspec-prophecy/composer.json
/usr/share/licenses/php-phpspec-prophecy
/usr/share/licenses/php-phpspec-prophecy/LICENSE
/usr/share/php/Prophecy
/usr/share/php/Prophecy/Argument
/usr/share/php/Prophecy/Argument.php
/usr/share/php/Prophecy/Argument/ArgumentsWildcard.php
/usr/share/php/Prophecy/Argument/Token
/usr/share/php/Prophecy/Argument/Token/AnyValueToken.php
/usr/share/php/Prophecy/Argument/Token/AnyValuesToken.php
/usr/share/php/Prophecy/Argument/Token/ApproximateValueToken.php
/usr/share/php/Prophecy/Argument/Token/ArrayCountToken.php
/usr/share/php/Prophecy/Argument/Token/ArrayEntryToken.php
/usr/share/php/Prophecy/Argument/Token/ArrayEveryEntryToken.php
/usr/share/php/Prophecy/Argument/Token/CallbackToken.php
/usr/share/php/Prophecy/Argument/Token/ExactValueToken.php
/usr/share/php/Prophecy/Argument/Token/IdenticalValueToken.php
/usr/share/php/Prophecy/Argument/Token/InArrayToken.php
/usr/share/php/Prophecy/Argument/Token/LogicalAndToken.php
/usr/share/php/Prophecy/Argument/Token/LogicalNotToken.php
/usr/share/php/Prophecy/Argument/Token/NotInArrayToken.php
/usr/share/php/Prophecy/Argument/Token/ObjectStateToken.php
/usr/share/php/Prophecy/Argument/Token/StringContainsToken.php
/usr/share/php/Prophecy/Argument/Token/TokenInterface.php
/usr/share/php/Prophecy/Argument/Token/TypeToken.php
/usr/share/php/Prophecy/Call
/usr/share/php/Prophecy/Call/Call.php
/usr/share/php/Prophecy/Call/CallCenter.php
/usr/share/php/Prophecy/Comparator
/usr/share/php/Prophecy/Comparator/ClosureComparator.php
/usr/share/php/Prophecy/Comparator/Factory.php
/usr/share/php/Prophecy/Comparator/ProphecyComparator.php
/usr/share/php/Prophecy/Doubler
/usr/share/php/Prophecy/Doubler/CachedDoubler.php
/usr/share/php/Prophecy/Doubler/ClassPatch
/usr/share/php/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php
/usr/share/php/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/KeywordPatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/MagicCallPatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/ThrowablePatch.php
/usr/share/php/Prophecy/Doubler/ClassPatch/TraversablePatch.php
/usr/share/php/Prophecy/Doubler/DoubleInterface.php
/usr/share/php/Prophecy/Doubler/Doubler.php
/usr/share/php/Prophecy/Doubler/Generator
/usr/share/php/Prophecy/Doubler/Generator/ClassCodeGenerator.php
/usr/share/php/Prophecy/Doubler/Generator/ClassCreator.php
/usr/share/php/Prophecy/Doubler/Generator/ClassMirror.php
/usr/share/php/Prophecy/Doubler/Generator/Node
/usr/share/php/Prophecy/Doubler/Generator/Node/ArgumentNode.php
/usr/share/php/Prophecy/Doubler/Generator/Node/ArgumentTypeNode.php
/usr/share/php/Prophecy/Doubler/Generator/Node/ClassNode.php
/usr/share/php/Prophecy/Doubler/Generator/Node/MethodNode.php
/usr/share/php/Prophecy/Doubler/Generator/Node/ReturnTypeNode.php
/usr/share/php/Prophecy/Doubler/Generator/Node/TypeNodeAbstract.php
/usr/share/php/Prophecy/Doubler/Generator/ReflectionInterface.php
/usr/share/php/Prophecy/Doubler/Generator/TypeHintReference.php
/usr/share/php/Prophecy/Doubler/LazyDouble.php
/usr/share/php/Prophecy/Doubler/NameGenerator.php
/usr/share/php/Prophecy/Exception
/usr/share/php/Prophecy/Exception/Call
/usr/share/php/Prophecy/Exception/Call/UnexpectedCallException.php
/usr/share/php/Prophecy/Exception/Doubler
/usr/share/php/Prophecy/Exception/Doubler/ClassCreatorException.php
/usr/share/php/Prophecy/Exception/Doubler/ClassMirrorException.php
/usr/share/php/Prophecy/Exception/Doubler/ClassNotFoundException.php
/usr/share/php/Prophecy/Exception/Doubler/DoubleException.php
/usr/share/php/Prophecy/Exception/Doubler/DoublerException.php
/usr/share/php/Prophecy/Exception/Doubler/InterfaceNotFoundException.php
/usr/share/php/Prophecy/Exception/Doubler/MethodNotExtendableException.php
/usr/share/php/Prophecy/Exception/Doubler/MethodNotFoundException.php
/usr/share/php/Prophecy/Exception/Doubler/ReturnByReferenceException.php
/usr/share/php/Prophecy/Exception/Exception.php
/usr/share/php/Prophecy/Exception/InvalidArgumentException.php
/usr/share/php/Prophecy/Exception/Prediction
/usr/share/php/Prophecy/Exception/Prediction/AggregateException.php
/usr/share/php/Prophecy/Exception/Prediction/FailedPredictionException.php
/usr/share/php/Prophecy/Exception/Prediction/NoCallsException.php
/usr/share/php/Prophecy/Exception/Prediction/PredictionException.php
/usr/share/php/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php
/usr/share/php/Prophecy/Exception/Prediction/UnexpectedCallsException.php
/usr/share/php/Prophecy/Exception/Prophecy
/usr/share/php/Prophecy/Exception/Prophecy/MethodProphecyException.php
/usr/share/php/Prophecy/Exception/Prophecy/ObjectProphecyException.php
/usr/share/php/Prophecy/Exception/Prophecy/ProphecyException.php
/usr/share/php/Prophecy/PhpDocumentor
/usr/share/php/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php
/usr/share/php/Prophecy/PhpDocumentor/ClassTagRetriever.php
/usr/share/php/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php
/usr/share/php/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php
/usr/share/php/Prophecy/Prediction
/usr/share/php/Prophecy/Prediction/CallPrediction.php
/usr/share/php/Prophecy/Prediction/CallTimesPrediction.php
/usr/share/php/Prophecy/Prediction/CallbackPrediction.php
/usr/share/php/Prophecy/Prediction/NoCallsPrediction.php
/usr/share/php/Prophecy/Prediction/PredictionInterface.php
/usr/share/php/Prophecy/Promise
/usr/share/php/Prophecy/Promise/CallbackPromise.php
/usr/share/php/Prophecy/Promise/PromiseInterface.php
/usr/share/php/Prophecy/Promise/ReturnArgumentPromise.php
/usr/share/php/Prophecy/Promise/ReturnPromise.php
/usr/share/php/Prophecy/Promise/ThrowPromise.php
/usr/share/php/Prophecy/Prophecy
/usr/share/php/Prophecy/Prophecy/MethodProphecy.php
/usr/share/php/Prophecy/Prophecy/ObjectProphecy.php
/usr/share/php/Prophecy/Prophecy/ProphecyInterface.php
/usr/share/php/Prophecy/Prophecy/ProphecySubjectInterface.php
/usr/share/php/Prophecy/Prophecy/Revealer.php
/usr/share/php/Prophecy/Prophecy/RevealerInterface.php
/usr/share/php/Prophecy/Prophet.php
/usr/share/php/Prophecy/Util
/usr/share/php/Prophecy/Util/ExportUtil.php
/usr/share/php/Prophecy/Util/StringUtil.php
/usr/share/php/Prophecy/autoload.php
References
Summary
In this tutorial we learn how to install php-phpspec-prophecy
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).