Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.

Squeeze里,想创建一个zend framework的project来着:

../ZendFramework-1.11.7/bin/zf.sh create project quickstart

遇到一个关于phpunit的‘错误’提示:

Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.

不喜欢这个提示,也需要用phpunit, 所以查查看有没有装phpunit先:

#aptitude search phpunit
p phpunit - Unit testing suite for PHP5
p phpunit-doc - Manual for phpunit

没有!
但 这个可以有:

# aptitude install phpunit
The following NEW packages will be installed:
php-benchmark{a} phpunit
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 249 kB of archives. After unpacking 2,998 kB will be used.
Do you want to continue? [Y/n/?] y
Get:1 http://ftp.cn.debian.org/debian/ squeeze/main php-benchmark all 1.2.7-5 [13.6 kB]
Get:2 http://ftp.cn.debian.org/debian/ squeeze/main phpunit all 3.4.14-1 [235 kB]
Fetched 249 kB in 1s (231 kB/s)
Selecting previously deselected package php-benchmark.
(Reading database ... 292956 files and directories currently installed.)
Unpacking php-benchmark (from .../php-benchmark_1.2.7-5_all.deb) ...
Selecting previously deselected package phpunit.
Unpacking phpunit (from .../phpunit_3.4.14-1_all.deb) ...
Processing triggers for man-db ...
Setting up php-benchmark (1.2.7-5) ...
Setting up phpunit (3.4.14-1) ...

重新创建ZF项目:

rm -rf quickstart; ../ZendFramework-1.11.7/bin/zf.sh create project quickstart

搞定!

Chinese, Simplified(简体中文)

添加新评论