I needed to install PHPUnit with my local version of MAMP Pro 2.0.1 recently. After starting with this article for ideas, I came up with the following adjusted steps:
1. Create a soft link to the MAMP version of pear:
1 2 | |
2. I found that the default pear.conf file was either corrupt or invalid. Following a forum suggestion on the mamp.info site, I just removed it by renaming it:
1 2 | |
3. Add the pear channels associated with PHPUnit:
1 2 3 | |
4. Install PHPUnit:
1
| |
Note: I ran into a an issue at this point, where pear would not install an unstable version of HTTP_Request2 that it found. So, I just forced it to install the RC1 version instead:
1
| |
I ran the pear install command after this.
5. At this point, PHPUnit should be installed. So, I created a new soft link to the phpunit file:
1 2 | |
6. Done. To test the install type:
1
| |