How do you install PHPUnit without using PEAR on Mac OS X 10.5?

后端 未结 5 997
粉色の甜心
粉色の甜心 2020-12-31 20:42

I am having trouble installing PEAR, but I really only want to install PHPUnit. Does anyone have experience doing this?

5条回答
  •  爱一瞬间的悲伤
    2020-12-31 21:14

    I just installed it today. My steps were as follows:

    • download from /get/ - I used 3.3.9.tgz
    • extract all files into the pear directory (pear-phpunit, PHPUnit/, etc...)
    • change the @php_bin@ to point to my php binary (/usr/bin/php) in the files mentioned above
    • create a symlink from pear-phpunit to /usr/local/bin/phpunit ( ln -s /usr/share/php/pear/pear-phpunit /usr/local/bin/phpunit )

提交回复
热议问题