0
votes

I am new for TDD and following "Agile Web application Development with yii" book. I have successfully installed phpunit and trying to install selenium extension as book recommends. But when i try to install phpunit_selenim, it gives me following error:

No releases available for package "pear.phpunit.de/PHP_Selenium" install failed

I have tried to do the installation process here, but it did not help, i got the same result. is there anything i missed up or there is another way to install it?

P.S. I am using ubuntu with lamp server to develop yii application.

2

2 Answers

1
votes

Try next sequence of commands:

pear clear-cache
pear config-set auto_discover 1
pear install PHPUnit/PHPUnit_Selenium

(Also looks like it was attempt to install PHP_Selenium instead of PHPUnit_Selenium package according to your error message)

0
votes

Can't add comment, so before Sergey's answer do:

sudo pear install phpunit
sudo pear channel-discover pear.phpunit.de

After, Sergey's:

pear clear-cache
pear config-set auto_discover 1
pear install PHPUnit/PHPUnit_Selenium

This work for me at least.