PHPUnit 3

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi *,

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'm actually using

  config/   - contains config-files and is unreadable from internet ;)
  classes/ - where my ownclasses/libraries are
  lib/    - foreign libs, e.g., smarty if not installed on host
  templates/ - smarty template dir..
  tests/ - phpunit tests

I also read
but it says nothing about tests. Maybe the guys from Zeev and Andi do
not test :)


Re: PHPUnit 3

Quoted text here. Click to load it

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

Best regards,
Willem Bogaerts

Application smith
Kratz B.V.

Re: PHPUnit 3

On 21 Mai, 14:26, Willem Bogaerts
Quoted text here. Click to load it
 Thank you. It seems that nobody else tests its software.


Site Timeline