|
Posted by Willem Bogaerts on 05/21/07 12:26
> I searched for best practises for php apps, especially if you're using
> phpunit as testframework.
>
> I found nothing interesting, so I ask you, what do you think is a best
> practise on directory hierarchy.
I usually have some kind of administrator directory with a password on
it. My unit tests can be run from there. Off course, the tests
themselves are outside of the web root, as they do not contain any file
that should be called directly. There is one exception (which can be
found in subdirectories of admin): I sometimes add documentation to my
tests in the form of an UML scheme.
For a demo, see http://www.w-p.dds.nl/storyboard/admin/rununittests.php
Best regards,
--
Willem Bogaerts
Application smith
Kratz B.V.
http://www.kratz.nl/
Navigation:
[Reply to this message]
|