NYCPHP Meetup

NYPHP.org

[nycphp-talk] silent failure with PHPUnit and Zend Framework

David Mintz david at davidmintz.org
Wed Sep 22 11:55:22 EDT 2010


Just wondering if any of you PHPUnit and/or Zend Framework ninjas have any
insight into this.

When I simply run the command 'phpunit' from the top level of my tests
directory, it seems the process somehow silently pukes. It wasn't always
thus; I added a couple more test classes and this started becoming an issue.
The output looks like:

david at interps3:/opt/www/shitou/tests$ phpunit
PHPUnit 3.4.15 by Sebastian Bergmann.

...................................david at interps3:/opt/www/shitou/tests$


But if I use 'find' to recurse the tree and run every unit test, it works
fine.

david at interps3:/opt/www/shitou/tests$ find . -name '*Test.php' -ls -exec
phpunit {} \; |egrep 'Test.php|OK|failure'
11050 4 -rw-r--r-- 1 david david 155 Jan 7 2010
./application/controllers/IndexControllerTest.php
OK (1 test, 1 assertion)
11414 8 -rw-r--r-- 1 david david 5194 Sep 15 16:46
./application/controllers/UsersControllerTest.php
OK (9 tests, 25 assertions)
11076 8 -rw-r--r-- 1 david david 6938 Feb 23 2010
./application/modules/admin/controllers/LocationsControllerTest.php
OK (9 tests, 41 assertions)
10461 16 -rw-r--r-- 1 david david 12894 Sep 10 16:52
./application/modules/admin/controllers/InterpretersControllerTest.php
OK (9 tests, 45 assertions)
11073 8 -rw-r--r-- 1 david david 4881 Jan 13 2010
./application/modules/admin/controllers/EventTypesControllerTest.php
OK (5 tests, 27 assertions)
1935 8 -rw-r--r-- 1 david david 7455 Sep 10 16:52
./application/modules/admin/controllers/UsersControllerTest.php
OK (7 tests, 62 assertions) [etc[

It might be relevant that all my test classes extend a ControllerTestCase
which extends Zend_Test_PHPUnit_ControllerTestCase.

Am I running out of memory, possibly?

Thanks.

 --
David Mintz
http://davidmintz.org/
It ain't over:
http://www.healthcare-now.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100922/0cfb8f56/attachment.html>


More information about the talk mailing list