How To Install phpunit6 on Fedora 34

phpunit6 is The PHP Unit Testing framework version 6

Introduction

In this tutorial we learn how to install phpunit6 on Fedora 34.

What is phpunit6

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 6 of PHPUnit, available using the phpunit6 command. Documentation

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

Install phpunit6 on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install phpunit6 using dnf by running the following command:

sudo dnf -y install phpunit6

Install phpunit6 on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install phpunit6 using yum by running the following command:

sudo yum -y install phpunit6

How To Uninstall phpunit6 on Fedora 34

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

sudo dnf remove phpunit6

phpunit6 Package Contents on Fedora 34

/usr/bin/phpunit6
/usr/share/doc/phpunit6
/usr/share/doc/phpunit6/ChangeLog-6.5.md
/usr/share/doc/phpunit6/README.md
/usr/share/doc/phpunit6/composer.json
/usr/share/licenses/phpunit6
/usr/share/licenses/phpunit6/LICENSE
/usr/share/php/PHPUnit6
/usr/share/php/PHPUnit6/Exception.php
/usr/share/php/PHPUnit6/Framework
/usr/share/php/PHPUnit6/Framework/Assert
/usr/share/php/PHPUnit6/Framework/Assert.php
/usr/share/php/PHPUnit6/Framework/Assert/Functions.php
/usr/share/php/PHPUnit6/Framework/AssertionFailedError.php
/usr/share/php/PHPUnit6/Framework/BaseTestListener.php
/usr/share/php/PHPUnit6/Framework/CodeCoverageException.php
/usr/share/php/PHPUnit6/Framework/Constraint
/usr/share/php/PHPUnit6/Framework/Constraint/ArrayHasKey.php
/usr/share/php/PHPUnit6/Framework/Constraint/ArraySubset.php
/usr/share/php/PHPUnit6/Framework/Constraint/Attribute.php
/usr/share/php/PHPUnit6/Framework/Constraint/Callback.php
/usr/share/php/PHPUnit6/Framework/Constraint/ClassHasAttribute.php
/usr/share/php/PHPUnit6/Framework/Constraint/ClassHasStaticAttribute.php
/usr/share/php/PHPUnit6/Framework/Constraint/Composite.php
/usr/share/php/PHPUnit6/Framework/Constraint/Constraint.php
/usr/share/php/PHPUnit6/Framework/Constraint/Count.php
/usr/share/php/PHPUnit6/Framework/Constraint/DirectoryExists.php
/usr/share/php/PHPUnit6/Framework/Constraint/Exception.php
/usr/share/php/PHPUnit6/Framework/Constraint/ExceptionCode.php
/usr/share/php/PHPUnit6/Framework/Constraint/ExceptionMessage.php
/usr/share/php/PHPUnit6/Framework/Constraint/ExceptionMessageRegularExpression.php
/usr/share/php/PHPUnit6/Framework/Constraint/FileExists.php
/usr/share/php/PHPUnit6/Framework/Constraint/GreaterThan.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsAnything.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsEmpty.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsEqual.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsFalse.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsFinite.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsIdentical.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsInfinite.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsInstanceOf.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsJson.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsNan.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsNull.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsReadable.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsTrue.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsType.php
/usr/share/php/PHPUnit6/Framework/Constraint/IsWritable.php
/usr/share/php/PHPUnit6/Framework/Constraint/JsonMatches.php
/usr/share/php/PHPUnit6/Framework/Constraint/JsonMatchesErrorMessageProvider.php
/usr/share/php/PHPUnit6/Framework/Constraint/LessThan.php
/usr/share/php/PHPUnit6/Framework/Constraint/LogicalAnd.php
/usr/share/php/PHPUnit6/Framework/Constraint/LogicalNot.php
/usr/share/php/PHPUnit6/Framework/Constraint/LogicalOr.php
/usr/share/php/PHPUnit6/Framework/Constraint/LogicalXor.php
/usr/share/php/PHPUnit6/Framework/Constraint/ObjectHasAttribute.php
/usr/share/php/PHPUnit6/Framework/Constraint/RegularExpression.php
/usr/share/php/PHPUnit6/Framework/Constraint/SameSize.php
/usr/share/php/PHPUnit6/Framework/Constraint/StringContains.php
/usr/share/php/PHPUnit6/Framework/Constraint/StringEndsWith.php
/usr/share/php/PHPUnit6/Framework/Constraint/StringMatchesFormatDescription.php
/usr/share/php/PHPUnit6/Framework/Constraint/StringStartsWith.php
/usr/share/php/PHPUnit6/Framework/Constraint/TraversableContains.php
/usr/share/php/PHPUnit6/Framework/Constraint/TraversableContainsOnly.php
/usr/share/php/PHPUnit6/Framework/CoveredCodeNotExecutedException.php
/usr/share/php/PHPUnit6/Framework/DataProviderTestSuite.php
/usr/share/php/PHPUnit6/Framework/Error
/usr/share/php/PHPUnit6/Framework/Error/Deprecated.php
/usr/share/php/PHPUnit6/Framework/Error/Error.php
/usr/share/php/PHPUnit6/Framework/Error/Notice.php
/usr/share/php/PHPUnit6/Framework/Error/Warning.php
/usr/share/php/PHPUnit6/Framework/Exception.php
/usr/share/php/PHPUnit6/Framework/ExceptionWrapper.php
/usr/share/php/PHPUnit6/Framework/ExpectationFailedException.php
/usr/share/php/PHPUnit6/Framework/IncompleteTest.php
/usr/share/php/PHPUnit6/Framework/IncompleteTestCase.php
/usr/share/php/PHPUnit6/Framework/IncompleteTestError.php
/usr/share/php/PHPUnit6/Framework/InvalidCoversTargetException.php
/usr/share/php/PHPUnit6/Framework/MissingCoversAnnotationException.php
/usr/share/php/PHPUnit6/Framework/OutputError.php
/usr/share/php/PHPUnit6/Framework/RiskyTest.php
/usr/share/php/PHPUnit6/Framework/RiskyTestError.php
/usr/share/php/PHPUnit6/Framework/SelfDescribing.php
/usr/share/php/PHPUnit6/Framework/SkippedTest.php
/usr/share/php/PHPUnit6/Framework/SkippedTestCase.php
/usr/share/php/PHPUnit6/Framework/SkippedTestError.php
/usr/share/php/PHPUnit6/Framework/SkippedTestSuiteError.php
/usr/share/php/PHPUnit6/Framework/SyntheticError.php
/usr/share/php/PHPUnit6/Framework/Test.php
/usr/share/php/PHPUnit6/Framework/TestCase.php
/usr/share/php/PHPUnit6/Framework/TestFailure.php
/usr/share/php/PHPUnit6/Framework/TestListener.php
/usr/share/php/PHPUnit6/Framework/TestListenerDefaultImplementation.php
/usr/share/php/PHPUnit6/Framework/TestResult.php
/usr/share/php/PHPUnit6/Framework/TestSuite.php
/usr/share/php/PHPUnit6/Framework/TestSuiteIterator.php
/usr/share/php/PHPUnit6/Framework/UnintentionallyCoveredCodeError.php
/usr/share/php/PHPUnit6/Framework/Warning.php
/usr/share/php/PHPUnit6/Framework/WarningTestCase.php
/usr/share/php/PHPUnit6/Runner
/usr/share/php/PHPUnit6/Runner/BaseTestRunner.php
/usr/share/php/PHPUnit6/Runner/Exception.php
/usr/share/php/PHPUnit6/Runner/Filter
/usr/share/php/PHPUnit6/Runner/Filter/ExcludeGroupFilterIterator.php
/usr/share/php/PHPUnit6/Runner/Filter/Factory.php
/usr/share/php/PHPUnit6/Runner/Filter/GroupFilterIterator.php
/usr/share/php/PHPUnit6/Runner/Filter/IncludeGroupFilterIterator.php
/usr/share/php/PHPUnit6/Runner/Filter/NameFilterIterator.php
/usr/share/php/PHPUnit6/Runner/PhptTestCase.php
/usr/share/php/PHPUnit6/Runner/StandardTestSuiteLoader.php
/usr/share/php/PHPUnit6/Runner/TestSuiteLoader.php
/usr/share/php/PHPUnit6/Runner/Version.php
/usr/share/php/PHPUnit6/TextUI
/usr/share/php/PHPUnit6/TextUI/Command.php
/usr/share/php/PHPUnit6/TextUI/ResultPrinter.php
/usr/share/php/PHPUnit6/TextUI/TestRunner.php
/usr/share/php/PHPUnit6/Util
/usr/share/php/PHPUnit6/Util/Blacklist.php
/usr/share/php/PHPUnit6/Util/Configuration.php
/usr/share/php/PHPUnit6/Util/ConfigurationGenerator.php
/usr/share/php/PHPUnit6/Util/ErrorHandler.php
/usr/share/php/PHPUnit6/Util/Fileloader.php
/usr/share/php/PHPUnit6/Util/Filesystem.php
/usr/share/php/PHPUnit6/Util/Filter.php
/usr/share/php/PHPUnit6/Util/Getopt.php
/usr/share/php/PHPUnit6/Util/GlobalState.php
/usr/share/php/PHPUnit6/Util/InvalidArgumentHelper.php
/usr/share/php/PHPUnit6/Util/Json.php
/usr/share/php/PHPUnit6/Util/Log
/usr/share/php/PHPUnit6/Util/Log/JUnit.php
/usr/share/php/PHPUnit6/Util/Log/TeamCity.php
/usr/share/php/PHPUnit6/Util/PHP
/usr/share/php/PHPUnit6/Util/PHP/AbstractPhpProcess.php
/usr/share/php/PHPUnit6/Util/PHP/DefaultPhpProcess.php
/usr/share/php/PHPUnit6/Util/PHP/Template
/usr/share/php/PHPUnit6/Util/PHP/Template/PhptTestCase.tpl.dist
/usr/share/php/PHPUnit6/Util/PHP/Template/TestCaseClass.tpl.dist
/usr/share/php/PHPUnit6/Util/PHP/Template/TestCaseMethod.tpl.dist
/usr/share/php/PHPUnit6/Util/PHP/WindowsPhpProcess.php
/usr/share/php/PHPUnit6/Util/PHP/eval-stdin.php
/usr/share/php/PHPUnit6/Util/Printer.php
/usr/share/php/PHPUnit6/Util/RegularExpression.php
/usr/share/php/PHPUnit6/Util/Test.php
/usr/share/php/PHPUnit6/Util/TestDox
/usr/share/php/PHPUnit6/Util/TestDox/HtmlResultPrinter.php
/usr/share/php/PHPUnit6/Util/TestDox/NamePrettifier.php
/usr/share/php/PHPUnit6/Util/TestDox/ResultPrinter.php
/usr/share/php/PHPUnit6/Util/TestDox/TextResultPrinter.php
/usr/share/php/PHPUnit6/Util/TestDox/XmlResultPrinter.php
/usr/share/php/PHPUnit6/Util/TextTestListRenderer.php
/usr/share/php/PHPUnit6/Util/Type.php
/usr/share/php/PHPUnit6/Util/Xml.php
/usr/share/php/PHPUnit6/Util/XmlTestListRenderer.php
/usr/share/php/PHPUnit6/autoload.php

References

Summary

In this tutorial we learn how to install phpunit6 on Fedora 34 using yum and dnf.