PHPUnit best practices to organize tests. My recommended approach is combining the file system with an xml config.
1 2 3 4 5 6 |
tests/ \ unit/ | - module1 | - module2 - integration/ - functional/ |
with a phpunit.xml with a simple:
1 2 3 4 5 |
<testsuites> <testsuite name="My whole project"> <directory>tests</directory> </testsuite> </testsuites> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.