You have to run phpunit from the tests directory, best using the bootstrap like the following:
cd tests phpunit --bootstrap TestHelper.php Zend_AllTests On Tue, 8 Dec 2009 06:03:40 +0100, Andrea Turso <trashofmast...@gmail.com> wrote: > I downloaded the Zend Framework from trunk using svn and ran > phpunit tests/ > It stops testing almost immediately with the following output: > > PHP Fatal error: Class 'Zend_CodeGenerator_Php_Docblock_Tag' not > found in /tmp/ZF/library/Zend/CodeGenerator/Php/Docblock/Tag/Param.php > on line 35 > > Fatal error: Class 'Zend_CodeGenerator_Php_Docblock_Tag' not found in > /tmp/ZF/library/Zend/CodeGenerator/Php/Docblock/Tag/Param.php on line > 35 > > running phpunit for one directory at once seemed to work (e.g. phpunit > tests/Zend/Acl/) > > So I used this awk to run phpunit in each directory and see the > phpunit results for each directory: > > ls -l tests/Zend/ | awk '$8 !~ /(^All)|(^_)|(.php$)/ {print "phpunit > tests/Zend/" $8}' | sh 1> tests.log > > the complete output is here http://pastebin.com/m23a273e0 > > I would like to understand why some files needed to run the complete test > suite > are missing from the Full Package. I guess that this is normal in the > trunk where > new code is pushed frequently, but having missing files in a release > should break > the build. Right? > > > Looking forward for replies > > Regards > - Andrea > > > On Tue, Dec 8, 2009 at 12:22 AM, Andrea Turso <trashofmast...@gmail.com> > wrote: >> I just downloaded Zend Framework 1.9.6 full package from the Zend CDN >> to test it under PHP 5.3.1, but when running >> >> $ phpunit tests/ >> >> the following error appears: >> >> Warning: require_once(Zend/Queue/Adapter/Stomp/IO.php): failed to open >> stream: No such file or directory in >> ~/Downloads/ZendFramework-1.9.6/tests/Zend/Queue/Adapter/StompIOTest.php >> on line 38 >> >> Fatal error: require_once(): Failed opening required >> 'Zend/Queue/Adapter/Stomp/IO.php' >> (include_path='~/Downloads/ZendFramework-1.9.6/tests/../library:~/Downloads/ZendFramework-1.9.6/tests/../tests:/usr/lib/php5/PHPUnit:.:/usr/share/php:/usr/share/pear') >> in >> ~/Downloads/ZendFramework-1.9.6/tests/Zend/Queue/Adapter/StompIOTest.php >> on line 38 >> >> I tried with PHP 5.2.6-2 (ubuntu4.5 with Suhosin-Patch 0.9.6.2 (cli)) >> and with PHP 5.3.1 (cli) but it's the >> same. It seems that some files are missing. >> >> Any suggestion? In the meanwhile I'll try with the trunk version. >> >> Regards >> - Andrea >>