PHPUnit 3.0リリース
Sebastian Bergmann and his contributors are proud to announce the immediate availability of PHPUnit 3. ということで早速バージョンアップしてみました。
PHPUnit 3.0はxdebug 2.0.0RC1以降が必要なので、あらかじめインストールしておきます。今どきはPECLで入れる人が多い気がしますが、とりあえず確実な手動インストールで。
$ gnutar xvf xdebug-2.0.0RC1.tgz (←最近のGNU tarは圧縮形式を推測してくれる)
$ cd xdebug-2.0.0RC1
$ phpize
$ ./configure --enable-xdebug
$ make
$ sudo make install
php.iniに以下の記述を追加(実際に記述するパスはxdebugのmake install時に表示されたもの)。
zend_extension = /path/to/xdebug.so
既にインストール済みのPHPUnit2をアンインストール。
$ sudo pear uninstall phpunit/PHPUnit
uninstall ok: channel://pear.phpunit.de/PHPUnit-2.3.6
そして、PHPUnit 3をインストール。
$ sudo pear install --alldeps phpunit/PHPUnit
Failed to download pear/Testing_Selenium within preferred state "beta", latest release is version 0.2.1, stability "alpha", use "channel://pear.php.net/Testing_Selenium-0.2.1" to install
phpunit/PHPUnit can optionally use package "pear/Testing_Selenium" (version >= 0.2.0)
phpunit/PHPUnit can optionally use PHP extension "json"
downloading PHPUnit-3.0.0.tgz ...
Starting to download PHPUnit-3.0.0.tgz (100,207 bytes)
......................done: 100,207 bytes
downloading Image_GraphViz-1.2.1.tgz ...
Starting to download Image_GraphViz-1.2.1.tgz (4,872 bytes)
...done: 4,872 bytes
install ok: channel://pear.php.net/Image_GraphViz-1.2.1
install ok: channel://pear.phpunit.de/PHPUnit-3.0.0
