I have a following problem - when using phpunit
in my Laravel 4 installation folder I get a following error:
Laravel requires the Mcrypt PHP extension.
However it does not appear when I'm using the artisan
command. I know that the issue must be caused by phpunit loading another php.ini than the one set in my zshconfig.
Unfortunately I don't know how to force phpunit to use the correct one.
My .zshconfig looks like this:
# Customize to your needs...
export PATH=:/Applications/MAMP/Library/bin/:/Users/jacekbandura/pear/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin/:/Users/jacekbandura/nasm
export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
I'm using OS X 10.8.4 and MAMP.
Has anyone solved this problem before? Thanks in advance :)