For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2006 > [PHPUnit]: Directory structure for unit tests









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [PHPUnit]: Directory structure for unit tests
Andreas Hofmann

2006-05-29, 7:02 pm


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

--
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com