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

When I was to create a zend framework project with following command in squeeze:

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

I got this 'error' hint:

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

I do not like the error while I do like & want the phpunit, so I fired a search to find out whether the phpunit being installed on my server:

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

Not there!
So install it:

# 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) ...

Run the command to create the ZF project again:

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

Done!

English

Comments

This saved me alot of time. Thanks!!

Glad it helps, enjoy ZF!

thank you

If you are using php in windows, you may want to try this one for installing phpunit:
http://amiworks.co.in/talk/installing-pear-and-phpunit-on-wamp-and-windo...

Steps that worked for me:

C:\wamp\bin\php\php5.3.5> php -d phar.require_hash=0 PEAR/go-pear.phar
C:\wamp\bin\php\php5.3.5> pear install Structures_Graph
C:\wamp\bin\php\php5.3.5> pear upgrade pear
C:\wamp\bin\php\php5.3.5> pear channel-discover pear.phpunit.de
C:\wamp\bin\php\php5.3.5> pear install --alldeps phpunit/PHPUnit

Add new comment