[PHPUnit]: Directory structure for unit tests
| From: | Andreas Hofmann | Date: | Mon, 29 May 2006 17:56:14 +0000 |
| Subject: | [PHPUnit]: Directory structure for unit tests | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24190@lists.php.net to get a copy of this message | ||
Hi all,
I am new to PHP and I wonder how unit tests (PHPUnit2) should be
structured in directories within a PHP project?
Is it:
a)
<project root>
|
|- a.php
|- b.php
|-<test>
| aTest.php
| bTest.php
|-<package>
|
| c.php
|-<test>
|-cTest.php
b)
<project root>
|
|- a.php
|- b.php
|- aTest.php
|- bTest.php
|-<package>
|
| c.php
|-cTest.php
c)
<project root>
|
|- a.php
|- b.php
|-<package>
| |
| | c.php
|-<test>
|- aTest.php
|- bTest.php
|- cTest.php
Or is it something completly different, or doesn't it matter?
Thanks in advance
Andreas
--