How To Install phpunit7 on Fedora 36

In this tutorial we learn how to install phpunit7 in Fedora 36. phpunit7 is The PHP Unit Testing framework version 7

Introduction

In this tutorial we learn how to install phpunit7 on Fedora 36.

What is phpunit7

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. This package provides the version 7 of PHPUnit, available using the phpunit7 command. This version have reached its end of life in Feb 2020, so consider using a supported version, see https Documentation

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

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

sudo dnf -y install phpunit7

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

sudo yum -y install phpunit7

How To Uninstall phpunit7 on Fedora 36

To uninstall only the phpunit7 package we can use the following command:

sudo dnf remove phpunit7

phpunit7 Package Contents on Fedora 36

/usr/bin/phpunit7
/usr/share/doc/phpunit7
/usr/share/doc/phpunit7/ChangeLog-7.5.md
/usr/share/doc/phpunit7/README.md
/usr/share/doc/phpunit7/composer.json
/usr/share/licenses/phpunit7
/usr/share/licenses/phpunit7/LICENSE
/usr/share/php/PHPUnit7
/usr/share/php/PHPUnit7/Exception.php
/usr/share/php/PHPUnit7/Framework
/usr/share/php/PHPUnit7/Framework/Assert
/usr/share/php/PHPUnit7/Framework/Assert.php
/usr/share/php/PHPUnit7/Framework/Assert/Functions.php
/usr/share/php/PHPUnit7/Framework/AssertionFailedError.php
/usr/share/php/PHPUnit7/Framework/CodeCoverageException.php
/usr/share/php/PHPUnit7/Framework/Constraint
/usr/share/php/PHPUnit7/Framework/Constraint/ArrayHasKey.php
/usr/share/php/PHPUnit7/Framework/Constraint/ArraySubset.php
/usr/share/php/PHPUnit7/Framework/Constraint/Attribute.php
/usr/share/php/PHPUnit7/Framework/Constraint/Callback.php
/usr/share/php/PHPUnit7/Framework/Constraint/ClassHasAttribute.php
/usr/share/php/PHPUnit7/Framework/Constraint/ClassHasStaticAttribute.php
/usr/share/php/PHPUnit7/Framework/Constraint/Composite.php
/usr/share/php/PHPUnit7/Framework/Constraint/Constraint.php
/usr/share/php/PHPUnit7/Framework/Constraint/Count.php
/usr/share/php/PHPUnit7/Framework/Constraint/DirectoryExists.php
/usr/share/php/PHPUnit7/Framework/Constraint/Exception.php
/usr/share/php/PHPUnit7/Framework/Constraint/ExceptionCode.php
/usr/share/php/PHPUnit7/Framework/Constraint/ExceptionMessage.php
/usr/share/php/PHPUnit7/Framework/Constraint/ExceptionMessageRegularExpression.php
/usr/share/php/PHPUnit7/Framework/Constraint/FileExists.php
/usr/share/php/PHPUnit7/Framework/Constraint/GreaterThan.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsAnything.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsEmpty.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsEqual.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsFalse.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsFinite.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsIdentical.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsInfinite.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsInstanceOf.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsJson.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsNan.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsNull.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsReadable.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsTrue.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsType.php
/usr/share/php/PHPUnit7/Framework/Constraint/IsWritable.php
/usr/share/php/PHPUnit7/Framework/Constraint/JsonMatches.php
/usr/share/php/PHPUnit7/Framework/Constraint/JsonMatchesErrorMessageProvider.php
/usr/share/php/PHPUnit7/Framework/Constraint/LessThan.php
/usr/share/php/PHPUnit7/Framework/Constraint/LogicalAnd.php
/usr/share/php/PHPUnit7/Framework/Constraint/LogicalNot.php
/usr/share/php/PHPUnit7/Framework/Constraint/LogicalOr.php
/usr/share/php/PHPUnit7/Framework/Constraint/LogicalXor.php
/usr/share/php/PHPUnit7/Framework/Constraint/ObjectHasAttribute.php
/usr/share/php/PHPUnit7/Framework/Constraint/RegularExpression.php
/usr/share/php/PHPUnit7/Framework/Constraint/SameSize.php
/usr/share/php/PHPUnit7/Framework/Constraint/StringContains.php
/usr/share/php/PHPUnit7/Framework/Constraint/StringEndsWith.php
/usr/share/php/PHPUnit7/Framework/Constraint/StringMatchesFormatDescription.php
/usr/share/php/PHPUnit7/Framework/Constraint/StringStartsWith.php
/usr/share/php/PHPUnit7/Framework/Constraint/TraversableContains.php
/usr/share/php/PHPUnit7/Framework/Constraint/TraversableContainsOnly.php
/usr/share/php/PHPUnit7/Framework/CoveredCodeNotExecutedException.php
/usr/share/php/PHPUnit7/Framework/DataProviderTestSuite.php
/usr/share/php/PHPUnit7/Framework/Error
/usr/share/php/PHPUnit7/Framework/Error/Deprecated.php
/usr/share/php/PHPUnit7/Framework/Error/Error.php
/usr/share/php/PHPUnit7/Framework/Error/Notice.php
/usr/share/php/PHPUnit7/Framework/Error/Warning.php
/usr/share/php/PHPUnit7/Framework/Exception.php
/usr/share/php/PHPUnit7/Framework/ExceptionWrapper.php
/usr/share/php/PHPUnit7/Framework/ExpectationFailedException.php
/usr/share/php/PHPUnit7/Framework/IncompleteTest.php
/usr/share/php/PHPUnit7/Framework/IncompleteTestCase.php
/usr/share/php/PHPUnit7/Framework/IncompleteTestError.php
/usr/share/php/PHPUnit7/Framework/InvalidCoversTargetException.php
/usr/share/php/PHPUnit7/Framework/InvalidParameterGroupException.php
/usr/share/php/PHPUnit7/Framework/MissingCoversAnnotationException.php
/usr/share/php/PHPUnit7/Framework/MockObject
/usr/share/php/PHPUnit7/Framework/MockObject/Builder
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/Identity.php
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/InvocationMocker.php
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/Match.php
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/MethodNameMatch.php
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/NamespaceMatch.php
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/ParametersMatch.php
/usr/share/php/PHPUnit7/Framework/MockObject/Builder/Stub.php
/usr/share/php/PHPUnit7/Framework/MockObject/Exception
/usr/share/php/PHPUnit7/Framework/MockObject/Exception/BadMethodCallException.php
/usr/share/php/PHPUnit7/Framework/MockObject/Exception/Exception.php
/usr/share/php/PHPUnit7/Framework/MockObject/Exception/RuntimeException.php
/usr/share/php/PHPUnit7/Framework/MockObject/ForwardCompatibility
/usr/share/php/PHPUnit7/Framework/MockObject/ForwardCompatibility/MockObject.php
/usr/share/php/PHPUnit7/Framework/MockObject/Generator
/usr/share/php/PHPUnit7/Framework/MockObject/Generator.php
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/deprecation.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/mocked_class.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/mocked_class_method.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/mocked_clone.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/mocked_method.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/mocked_method_void.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/mocked_static_method.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/proxied_method.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/proxied_method_void.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/trait_class.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/unmocked_clone.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/wsdl_class.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Generator/wsdl_method.tpl.dist
/usr/share/php/PHPUnit7/Framework/MockObject/Invocation
/usr/share/php/PHPUnit7/Framework/MockObject/Invocation/Invocation.php
/usr/share/php/PHPUnit7/Framework/MockObject/Invocation/ObjectInvocation.php
/usr/share/php/PHPUnit7/Framework/MockObject/Invocation/StaticInvocation.php
/usr/share/php/PHPUnit7/Framework/MockObject/InvocationMocker.php
/usr/share/php/PHPUnit7/Framework/MockObject/Invokable.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/AnyInvokedCount.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/AnyParameters.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/ConsecutiveParameters.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/DeferredError.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/Invocation.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/InvokedAtIndex.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/InvokedAtLeastCount.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/InvokedAtLeastOnce.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/InvokedAtMostCount.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/InvokedCount.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/InvokedRecorder.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/MethodName.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/Parameters.php
/usr/share/php/PHPUnit7/Framework/MockObject/Matcher/StatelessInvocation.php
/usr/share/php/PHPUnit7/Framework/MockObject/MockBuilder.php
/usr/share/php/PHPUnit7/Framework/MockObject/MockMethod.php
/usr/share/php/PHPUnit7/Framework/MockObject/MockMethodSet.php
/usr/share/php/PHPUnit7/Framework/MockObject/MockObject.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub
/usr/share/php/PHPUnit7/Framework/MockObject/Stub.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ConsecutiveCalls.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/Exception.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/MatcherCollection.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ReturnArgument.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ReturnCallback.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ReturnReference.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ReturnSelf.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ReturnStub.php
/usr/share/php/PHPUnit7/Framework/MockObject/Stub/ReturnValueMap.php
/usr/share/php/PHPUnit7/Framework/MockObject/Verifiable.php
/usr/share/php/PHPUnit7/Framework/OutputError.php
/usr/share/php/PHPUnit7/Framework/RiskyTest.php
/usr/share/php/PHPUnit7/Framework/RiskyTestError.php
/usr/share/php/PHPUnit7/Framework/SelfDescribing.php
/usr/share/php/PHPUnit7/Framework/SkippedTest.php
/usr/share/php/PHPUnit7/Framework/SkippedTestCase.php
/usr/share/php/PHPUnit7/Framework/SkippedTestError.php
/usr/share/php/PHPUnit7/Framework/SkippedTestSuiteError.php
/usr/share/php/PHPUnit7/Framework/SyntheticError.php
/usr/share/php/PHPUnit7/Framework/Test.php
/usr/share/php/PHPUnit7/Framework/TestCase.php
/usr/share/php/PHPUnit7/Framework/TestFailure.php
/usr/share/php/PHPUnit7/Framework/TestListener.php
/usr/share/php/PHPUnit7/Framework/TestListenerDefaultImplementation.php
/usr/share/php/PHPUnit7/Framework/TestResult.php
/usr/share/php/PHPUnit7/Framework/TestSuite.php
/usr/share/php/PHPUnit7/Framework/TestSuiteIterator.php
/usr/share/php/PHPUnit7/Framework/UnexpectedValueException.php
/usr/share/php/PHPUnit7/Framework/UnintentionallyCoveredCodeError.php
/usr/share/php/PHPUnit7/Framework/Warning.php
/usr/share/php/PHPUnit7/Framework/WarningTestCase.php
/usr/share/php/PHPUnit7/Runner
/usr/share/php/PHPUnit7/Runner/BaseTestRunner.php
/usr/share/php/PHPUnit7/Runner/Exception.php
/usr/share/php/PHPUnit7/Runner/Filter
/usr/share/php/PHPUnit7/Runner/Filter/ExcludeGroupFilterIterator.php
/usr/share/php/PHPUnit7/Runner/Filter/Factory.php
/usr/share/php/PHPUnit7/Runner/Filter/GroupFilterIterator.php
/usr/share/php/PHPUnit7/Runner/Filter/IncludeGroupFilterIterator.php
/usr/share/php/PHPUnit7/Runner/Filter/NameFilterIterator.php
/usr/share/php/PHPUnit7/Runner/Hook
/usr/share/php/PHPUnit7/Runner/Hook/AfterIncompleteTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterLastTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterRiskyTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterSkippedTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterSuccessfulTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterTestErrorHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterTestFailureHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/AfterTestWarningHook.php
/usr/share/php/PHPUnit7/Runner/Hook/BeforeFirstTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/BeforeTestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/Hook.php
/usr/share/php/PHPUnit7/Runner/Hook/TestHook.php
/usr/share/php/PHPUnit7/Runner/Hook/TestListenerAdapter.php
/usr/share/php/PHPUnit7/Runner/PhptTestCase.php
/usr/share/php/PHPUnit7/Runner/ResultCacheExtension.php
/usr/share/php/PHPUnit7/Runner/StandardTestSuiteLoader.php
/usr/share/php/PHPUnit7/Runner/TestSuiteLoader.php
/usr/share/php/PHPUnit7/Runner/TestSuiteSorter.php
/usr/share/php/PHPUnit7/Runner/Version.php
/usr/share/php/PHPUnit7/TextUI
/usr/share/php/PHPUnit7/TextUI/Command.php
/usr/share/php/PHPUnit7/TextUI/ResultPrinter.php
/usr/share/php/PHPUnit7/TextUI/TestRunner.php
/usr/share/php/PHPUnit7/Util
/usr/share/php/PHPUnit7/Util/Blacklist.php
/usr/share/php/PHPUnit7/Util/Configuration.php
/usr/share/php/PHPUnit7/Util/Configuration.php.rpm
/usr/share/php/PHPUnit7/Util/ConfigurationGenerator.php
/usr/share/php/PHPUnit7/Util/ErrorHandler.php
/usr/share/php/PHPUnit7/Util/FileLoader.php
/usr/share/php/PHPUnit7/Util/Filesystem.php
/usr/share/php/PHPUnit7/Util/Filter.php
/usr/share/php/PHPUnit7/Util/Getopt.php
/usr/share/php/PHPUnit7/Util/GlobalState.php
/usr/share/php/PHPUnit7/Util/InvalidArgumentHelper.php
/usr/share/php/PHPUnit7/Util/Json.php
/usr/share/php/PHPUnit7/Util/Log
/usr/share/php/PHPUnit7/Util/Log/JUnit.php
/usr/share/php/PHPUnit7/Util/Log/TeamCity.php
/usr/share/php/PHPUnit7/Util/NullTestResultCache.php
/usr/share/php/PHPUnit7/Util/PHP
/usr/share/php/PHPUnit7/Util/PHP/AbstractPhpProcess.php
/usr/share/php/PHPUnit7/Util/PHP/DefaultPhpProcess.php
/usr/share/php/PHPUnit7/Util/PHP/Template
/usr/share/php/PHPUnit7/Util/PHP/Template/PhptTestCase.tpl.dist
/usr/share/php/PHPUnit7/Util/PHP/Template/TestCaseClass.tpl.dist
/usr/share/php/PHPUnit7/Util/PHP/Template/TestCaseMethod.tpl.dist
/usr/share/php/PHPUnit7/Util/PHP/WindowsPhpProcess.php
/usr/share/php/PHPUnit7/Util/Printer.php
/usr/share/php/PHPUnit7/Util/RegularExpression.php
/usr/share/php/PHPUnit7/Util/Test.php
/usr/share/php/PHPUnit7/Util/TestDox
/usr/share/php/PHPUnit7/Util/TestDox/CliTestDoxPrinter.php
/usr/share/php/PHPUnit7/Util/TestDox/HtmlResultPrinter.php
/usr/share/php/PHPUnit7/Util/TestDox/NamePrettifier.php
/usr/share/php/PHPUnit7/Util/TestDox/ResultPrinter.php
/usr/share/php/PHPUnit7/Util/TestDox/TestResult.php
/usr/share/php/PHPUnit7/Util/TestDox/TextResultPrinter.php
/usr/share/php/PHPUnit7/Util/TestDox/XmlResultPrinter.php
/usr/share/php/PHPUnit7/Util/TestResultCache.php
/usr/share/php/PHPUnit7/Util/TestResultCacheInterface.php
/usr/share/php/PHPUnit7/Util/TextTestListRenderer.php
/usr/share/php/PHPUnit7/Util/Type.php
/usr/share/php/PHPUnit7/Util/XdebugFilterScriptGenerator.php
/usr/share/php/PHPUnit7/Util/Xml.php
/usr/share/php/PHPUnit7/Util/XmlTestListRenderer.php
/usr/share/php/PHPUnit7/autoload.php
/usr/share/php/PHPUnit7/phpunit.xsd

References

Summary

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