Distributed unittest/fixtures/functional tests

Anyone interested in package of classes/config that allows to place unittests, fixtures and functional tests in /modules/XXX/tests/ directories?

We have managed to make such configuration and it can (in some cases) greatly improve encapsulation of module files. Everything is in one subdirectory, testing suite watches only for modules configured in main config…

Anyone? :)

I am just asking because I have to do some code improvements to make it possible to show to the public (comments, class names, package, etc)… As for now it works fine for me.

Hmm… it works for me out of the box. You have to change working dir to where phpunit.xml and bootstrap.php are. Then:




phpunit path/to/your/tests/dir



yes, but if have 10 modules you have to exec 10 commands to test every single module. I am talking about solution to test them all with one command:


phpunit AllTestsSuit

Example 7.2: Composing a Test Suite Using XML Configuration of the phpunit manual page should help you to achive what you want.

Hope I could help you ;)

Also you can create a .bar or .sh file to run multiple commands.

but you have to maintain this file and update everytime when adding/removing modules…

ok. no prob. just forget I asked.

Well, these were variants. If your one is slightly better, that’s great and we’ll love to see it.