#!/bin/bash

echo "Installing Pear"
yum install -y php-pear

echo "Adding Pear channels"
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony.com

echo "Installing PHPUnit"
pear install phpunit/PHPUnit

echo "PHPUnit and Pear installed"

#!/bin/bash

echo "Installing Pear"
yum install -y php-pear

echo "Adding Pear channels"
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony.com

echo "Installing PHPUnit - note this might take a while"
pear install phpunit/PHPUnit

echo "PHPUnit and Pear installed"

Add a notice to PHPUnit saying it'll take a while
Add a notice to PHPUnit saying it'll take a while

There is no -v or --verbose option to show a progress bar or similar to avoid people thinking installation is hanging. PHPUnit does take a while to install.