zendframework 0.1.2 のテスト
>php AllTests.php PHP Warning: require_once(PHPUnit2/Framework/TestSuite.php): failed to open str eam: No such file or directory in D:\dev\zendframework-0.1.2\tests\AllTests.php on line 6 PHP Fatal error: require_once(): Failed opening required 'PHPUnit2/Framework/Te stSuite.php' (include_path='.;D:\dev\php-5.1.2\pear;;D:\dev\zendframework-0.1.2\ library') in D:\dev\zendframework-0.1.2\tests\AllTests.php on line 6
ん?pearはインストールしてるとおもうんだけど。
たしかにpearってつかったことがないな。
googleでしらべるとpear install phpunit2でいいようだ。
>pear install phpunit2 Did not download dependencies: pear/Benchmark, pear/Log, use --alldeps or --only reqdeps to download automatically pear/PHPUnit2 can optionally use PHP extension "xdebug" (version >= 2.0.0beta2) pear/PHPUnit2 requires package "pear/Benchmark" pear/PHPUnit2 can optionally use package "pear/Log" No valid packages found install failed
依存パッケージをデフォルトではいれてくれないようだ。mavenとはちがうのだな。
>pear install --alldeps phpunit2 pear/PHPUnit2 can optionally use PHP extension "xdebug" (version >= 2.0.0beta2) pear/Log can optionally use PHP extension "sqlite" downloading PHPUnit2-2.3.5.tgz ... Starting to download PHPUnit2-2.3.5.tgz (43,243 bytes) ............done: 43,243 bytes downloading Benchmark-1.2.6.tgz ... Starting to download Benchmark-1.2.6.tgz (7,915 bytes) ...done: 7,915 bytes downloading Log-1.9.3.tgz ... Starting to download Log-1.9.3.tgz (34,792 bytes) ...done: 34,792 bytes downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes) ...done: 124,807 bytes install ok: channel://pear.php.net/DB-1.7.6 install ok: channel://pear.php.net/Log-1.9.3 install ok: channel://pear.php.net/Benchmark-1.2.6 install ok: channel://pear.php.net/PHPUnit2-2.3.5
うまくいったようだ。
>php AllTests.php PHPUnit 2.3.5 by Sebastian Bergmann. ......................................... .....................................PHP Notice: Undefined variable: srcArray i n D:\dev\zendframework-0.1.2\tests\Zend\Pdf\Element\DictionaryTest.php on line 1 12 .... ......................................... ........................ Time: 62.973659 OK (147 tests)
とりあえずテストは通った