LoginSignup
11
10

More than 5 years have passed since last update.

homebrewでインストールしたphpのphpunitをインストール

Posted at
  • リポジトリを追加

sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony.com

  • phpunitインストール

sudo pear install phpunit/PHPUnit

% phpunit
zsh: command not found: phpunit

なぜか通らない。

  • phpunitの居場所を探す
% sudo find / -name phpunit
/usr/local/Cellar/php54/5.4.15/bin/phpunit

http://michaelheap.com/installing-phpunit-under-php-5-4-from-homebrew/
等見てみて、phpをバージョンアップしたとき面倒くさそうとか思ったけど、とりあえず.zshrcに追加した。

vi ~/.zshrc
export PATH="$(brew --prefix)/bin:/usr/local/Cellar/php54/5.4.15/bin:$PATH"
% phpunit --version
PHPUnit 3.7.21 by Sebastian Bergmann.

通った。

11
10
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10