Phpunit installation problems today I tried to install phpunit and found many problems. I have to install phpunit using pear. first install pearphp root directory execute phpgo-pear.php one way press enter, met (y/n) select y will finally generate a PEAR_ENV.reg registry file, double-click it, import information to register phpunit installation problems
I tried to install phpunit today and found many problems. I have to install phpunit using pear.
Install the pear php root directory first
Run
Php go-pear.php
Press enter all the way and select y if you encounter (y/n ).
Finally, a registry file of PEAR_ENV.reg will be generated. double-click it and import the information to the registry to use pear.
I failed to install phpunit several times. The main problem is that the pear version is too low. we recommend that you first check whether the pear version is too old. we recommend that you upgrade it to 1.9 or above.
View version
Pear-V
Upgrade
Pear install -- force PEAR-1.9.4
Update
Pear upgrade-all -- force
-- Force = force
Add Channel
Pear channel-discover pear.phpunit.de
Install
Pear install -- alldeps phpunit/PHPUnit
Problem:
Insufficient memory during installation
Memory_limit = 20 M. you just need to change the value after the upgrade.
The key is to upgrade pear to ensure that all key dependencies are installed.