How To Install php-hamcrest2 on Fedora 36
Introduction
In this tutorial we learn how to install php-hamcrest2
on Fedora 36.
What is php-hamcrest2
Hamcrest is a matching library originally written for Java, but subsequently ported to many other languages. php-hamcrest2 is the official PHP port of Hamcrest and essentially follows a literal translation of the original Java API for Hamcrest, with a few Exceptions, mostly down to PHP language barriers. Autoloader
We can use yum
or dnf
to install php-hamcrest2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-hamcrest2.
Install php-hamcrest2 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-hamcrest2
using dnf
by running the following command:
sudo dnf -y install php-hamcrest2
Install php-hamcrest2 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-hamcrest2
using yum
by running the following command:
sudo yum -y install php-hamcrest2
How To Uninstall php-hamcrest2 on Fedora 36
To uninstall only the php-hamcrest2
package we can use the following command:
sudo dnf remove php-hamcrest2
php-hamcrest2 Package Contents on Fedora 36
/usr/share/doc/php-hamcrest2
/usr/share/doc/php-hamcrest2/CHANGES.txt
/usr/share/doc/php-hamcrest2/README.md
/usr/share/doc/php-hamcrest2/composer.json
/usr/share/licenses/php-hamcrest2
/usr/share/licenses/php-hamcrest2/LICENSE.txt
/usr/share/php/Hamcrest2
/usr/share/php/Hamcrest2/Arrays
/usr/share/php/Hamcrest2/Arrays/IsArray.php
/usr/share/php/Hamcrest2/Arrays/IsArrayContaining.php
/usr/share/php/Hamcrest2/Arrays/IsArrayContainingInAnyOrder.php
/usr/share/php/Hamcrest2/Arrays/IsArrayContainingInOrder.php
/usr/share/php/Hamcrest2/Arrays/IsArrayContainingKey.php
/usr/share/php/Hamcrest2/Arrays/IsArrayContainingKeyValuePair.php
/usr/share/php/Hamcrest2/Arrays/IsArrayWithSize.php
/usr/share/php/Hamcrest2/Arrays/MatchingOnce.php
/usr/share/php/Hamcrest2/Arrays/SeriesMatchingOnce.php
/usr/share/php/Hamcrest2/AssertionError.php
/usr/share/php/Hamcrest2/BaseDescription.php
/usr/share/php/Hamcrest2/BaseMatcher.php
/usr/share/php/Hamcrest2/Collection
/usr/share/php/Hamcrest2/Collection/IsEmptyTraversable.php
/usr/share/php/Hamcrest2/Collection/IsTraversableWithSize.php
/usr/share/php/Hamcrest2/Core
/usr/share/php/Hamcrest2/Core/AllOf.php
/usr/share/php/Hamcrest2/Core/AnyOf.php
/usr/share/php/Hamcrest2/Core/CombinableMatcher.php
/usr/share/php/Hamcrest2/Core/DescribedAs.php
/usr/share/php/Hamcrest2/Core/Every.php
/usr/share/php/Hamcrest2/Core/HasToString.php
/usr/share/php/Hamcrest2/Core/Is.php
/usr/share/php/Hamcrest2/Core/IsAnything.php
/usr/share/php/Hamcrest2/Core/IsCollectionContaining.php
/usr/share/php/Hamcrest2/Core/IsEqual.php
/usr/share/php/Hamcrest2/Core/IsIdentical.php
/usr/share/php/Hamcrest2/Core/IsInstanceOf.php
/usr/share/php/Hamcrest2/Core/IsNot.php
/usr/share/php/Hamcrest2/Core/IsNull.php
/usr/share/php/Hamcrest2/Core/IsSame.php
/usr/share/php/Hamcrest2/Core/IsTypeOf.php
/usr/share/php/Hamcrest2/Core/Set.php
/usr/share/php/Hamcrest2/Core/ShortcutCombination.php
/usr/share/php/Hamcrest2/Description.php
/usr/share/php/Hamcrest2/DiagnosingMatcher.php
/usr/share/php/Hamcrest2/FeatureMatcher.php
/usr/share/php/Hamcrest2/Hamcrest.php
/usr/share/php/Hamcrest2/Internal
/usr/share/php/Hamcrest2/Internal/SelfDescribingValue.php
/usr/share/php/Hamcrest2/Matcher.php
/usr/share/php/Hamcrest2/MatcherAssert.php
/usr/share/php/Hamcrest2/Matchers.php
/usr/share/php/Hamcrest2/NullDescription.php
/usr/share/php/Hamcrest2/Number
/usr/share/php/Hamcrest2/Number/IsCloseTo.php
/usr/share/php/Hamcrest2/Number/OrderingComparison.php
/usr/share/php/Hamcrest2/SelfDescribing.php
/usr/share/php/Hamcrest2/StringDescription.php
/usr/share/php/Hamcrest2/Text
/usr/share/php/Hamcrest2/Text/IsEmptyString.php
/usr/share/php/Hamcrest2/Text/IsEqualIgnoringCase.php
/usr/share/php/Hamcrest2/Text/IsEqualIgnoringWhiteSpace.php
/usr/share/php/Hamcrest2/Text/MatchesPattern.php
/usr/share/php/Hamcrest2/Text/StringContains.php
/usr/share/php/Hamcrest2/Text/StringContainsIgnoringCase.php
/usr/share/php/Hamcrest2/Text/StringContainsInOrder.php
/usr/share/php/Hamcrest2/Text/StringEndsWith.php
/usr/share/php/Hamcrest2/Text/StringStartsWith.php
/usr/share/php/Hamcrest2/Text/SubstringMatcher.php
/usr/share/php/Hamcrest2/Type
/usr/share/php/Hamcrest2/Type/IsArray.php
/usr/share/php/Hamcrest2/Type/IsBoolean.php
/usr/share/php/Hamcrest2/Type/IsCallable.php
/usr/share/php/Hamcrest2/Type/IsDouble.php
/usr/share/php/Hamcrest2/Type/IsInteger.php
/usr/share/php/Hamcrest2/Type/IsNumeric.php
/usr/share/php/Hamcrest2/Type/IsObject.php
/usr/share/php/Hamcrest2/Type/IsResource.php
/usr/share/php/Hamcrest2/Type/IsScalar.php
/usr/share/php/Hamcrest2/Type/IsString.php
/usr/share/php/Hamcrest2/TypeSafeDiagnosingMatcher.php
/usr/share/php/Hamcrest2/TypeSafeMatcher.php
/usr/share/php/Hamcrest2/Util.php
/usr/share/php/Hamcrest2/Xml
/usr/share/php/Hamcrest2/Xml/HasXPath.php
/usr/share/php/Hamcrest2/autoload.php
References
Summary
In this tutorial we learn how to install php-hamcrest2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).