By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,806 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,806 IT Pros & Developers. It's quick & easy.

PHPUnit 3

P: n/a
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
doc/
lib/ - foreign libs, e.g., smarty if not installed on host
templates/ - smarty template dir..
tests/ - phpunit tests

I also read http://framework.zend.com/wiki/displ...rectory+Layout
but it says nothing about tests. Maybe the guys from Zeev and Andi do
not test :)

Cheers,
tuergeist

May 21 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/
May 21 '07 #2

P: n/a
On 21 Mai, 14:26, Willem Bogaerts
<w.bogae...@kratz.maardanzonderditstuk.nlwrote:
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, seehttp://www.w-p.dds.nl/storyboard/admin/rununittests.php
Ok.
Thank you. It seems that nobody else tests its software.

Cheers
Christoph

May 24 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.