CakePHP indicates that PHPUnit is not installed

0

I need to run does not recognize it. I've tried everything but the next screen is what always appears when I try to access the test interface of :

However,whenIchecktheinstallationviatheUbuntucommandlineIgetthisresponsefrom pear :

I'vealreadycheckedtheversion.Iinstalled3.7.32,soIresearchedthe cakephp is not compatible with the latest version. Also I checked if it was PATH error, but it seems that not. I added the bin folder of the in the $PATH variable of the OS, and everything happens normally 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 phpunit ! How do I resolve this problem?

    
asked by anonymous 07.04.2014 / 15:10

2 answers

0

I was able to solve the problem. Apparently it was the configuration of the pear in my computer, that is, the paths that were predefined for the installation of the same one. Before attempting to install it using the apt-get install php-pear command I tried to install it using the go-pear.phar script available on the official pear website. However, I had set up a non-default path for the pear installation, and I had difficulty adding it to the PATH, so it did not work normally. When I deleted all of the pear configuration files and reinstalled using apt-get, it worked correctly (since it was installed in the default path), so CakePHP was able to find PHPUnit installed.

    
09.04.2014 / 15:01
0

In my understanding CakePHP 2.0 needs PHPUnit as standalone, it is not enough to be installed in PEAR, there must be a direct installation to Cake. I believe the two links below can clarify everything you need to know about this:

08.04.2014 / 15:07