Cakephp indicates that Phpunit is not installed

Asked

Viewed 136 times

0

I need to rotate the with to perform unit tests, but despite having installed and configured the correctly through the , it seems that the does not recognize him. I’ve tried everything, but the next screen is what always appears when I try to access the test interface of :

Cake indica que PHPUnit não foi instalado

However, when I check the installation via Ubuntu command line I get this reply from :

O retorno que recebo do PEAR é que o PHPUnit foi instalado corretamente.

I even checked the version. I installed the 3.7.32, therefore I searched the is not compatible with the latest version. I’ve also checked if it was a PATH error, but it seems not. I added the bin folder in the variable $PATH of the OS, and everything normally occurs when I type phpunit --version at the prompt: it returns me Phpunit 3.7.32. The problem is that the does not yet recognize the ! How to solve this problem?

2 answers

0


I was able to solve the problem. Apparently it was the configuration of Pear on my computer, that is, the paths that were predefined for the installation of it. Before trying to install it using the command apt-get install php-Pear i tried to install it using the script go-Pear.phar available on Pear’s official website. However, I had set up a non-standard path for Pear installation, and I had difficulty adding it to PATH, so it didn’t work normally. When I deleted all Pear configuration files and reinstalled using apt-get, it worked correctly (as it was installed in the default path), and so Cakephp was able to find Phpunit installed.

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.