Getting phpunit to work with MAMP
by Pascal Opitz on May 13 2009, 12:41
In order to run my unit tests, I needed to get phpunit running with MAMP. Thanks to the helpful post of Mark Kirby on this, I figured it out.
- cd into your PEAR installation directory
- Make backup of phpunit file in bin folder
- Edit the original file, replace #!/usr/bin/php with #!/Applications/MAMP/bin/php5/bin/php
- 3. Also remove this:
if (strpos('/usr/bin/php', '@php_bin') === 0) { set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); }
- And finally, something that Mark didn't mention, add PEAR include path into /Applications/MAMP/conf/php5/php.ini
Comments
Pardon my absolute ignorance in PEAR but
Thanks.
by Mike on June 6 2009, 21:16 #
by Pascal Opitz on June 30 2009, 00:06 #