How To Install php-behat-mink on CentOS 7
Introduction
In this tutorial we learn how to install php-behat-mink
on CentOS 7.
What is php-behat-mink
One of the most important parts in the web is a browser. Browser is the window through which web users interact with web applications and other users. Users are always talking with web applications through browsers. So, in order to test that our web application behaves correctly, we need a way to simulate this interaction between the browser and the web application in our tests. We need a Mink. Mink is an open source browser controller/emulator for web applications, written in PHP. Read Mink at a Glance [1] to learn more about Mink and why you need it. Autoloader [1] http
We can use yum
or dnf
to install php-behat-mink
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-behat-mink.
Install php-behat-mink on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install php-behat-mink
using yum
by running the following command:
sudo yum -y install php-behat-mink
Install php-behat-mink 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 php-behat-mink
using dnf
by running the following command:
sudo dnf -y install php-behat-mink
How To Uninstall php-behat-mink on CentOS 7
To uninstall only the php-behat-mink
package we can use the following command:
sudo dnf remove php-behat-mink
References
Summary
In this tutorial we learn how to install php-behat-mink
on CentOS 7 using yum
and dnf
.