How to install phpunit in centos

This post will show you how to install phpunit in centos using pear or composer. I prefer using composer as its mega easy to add lots of cool stuff and keep it all updated.

Install phpunit in centos with composer.

Firstly, If you don’t have composer, then you’ll need to install composer.

For a system-wide installation of phpunit using composer, you can run:

composer global require "phpunit/phpunit=4.1.*"

You’ll need to make sure you have ~/.composer/vendor/bin/ in your path so that you can run composer form anywhere on your system.

Leave a Reply