How To Install atoum on CentOS 7

In this tutorial we learn how to install atoum on CentOS 7. atoum is PHP Unit Testing framework

Introduction

In this tutorial we learn how to install atoum on CentOS 7.

What is atoum

A simple, modern and intuitive unit testing framework for PHP! It has been designed from the start with the following ideas in mind * Can be implemented rapidly ; * Simplify test development ; * Allow for writing reliable, readable, and clear unit tests ; To accomplish that, it massively uses capabilities provided by PHP 5.3, to give the developer a whole new way of writing unit tests. Also, thanks to its fluid interface, it allows for writing unit tests in a fashion close to natural language. It also makes it easier to implement stubbing within tests, thanks to intelligent uses of anonymous functions and closures. atoum natively, and by default, performs the execution of each unit test within a separate PHP process, to warrant isolation. Of course, it can be used seamlessly for continuous integration, and given its design, it can be made to cope with specific needs extremely easily. atoum also accomplishes all of this without affecting performance, since it has been developed to boast a reduced memory footprint while allowing for hastened test execution. It can also generate unit test execution reports in the Xunit format, which makes it compatible with continuous integration tools such as Jenkins. atoum also generates code coverage reports, in order to make it possible to supervise unit tests. Optional dependency - php-pecl-xdebug for code coverage reports

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

Install atoum on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install atoum

Install atoum on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install atoum

How To Uninstall atoum on CentOS 7

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

sudo dnf remove atoum

References

Summary

In this tutorial we learn how to install atoum on CentOS 7 using yum and dnf.