Page 1 of 1

Unit Tests & Include Paths

Posted: Thu Feb 22, 2007 3:33 pm
by jamiel
Hey all,

In a team of 4 developers, what is the best way for us to handle Include Path's for Unit tests in our dev environment? At the moment we have a BaseTest class which extends PHPUnit_Framework_TestCase and basically set's the include path among other things, and then all tests extend off this. However all of us still need to go into this class and set the include path for our environment everytime we update.

Any ideas appreciated.

Jamie

Posted: Thu Feb 22, 2007 5:37 pm
by feyd
Agree on a file/directory structure. This BaseTest class can then use the current working directory to map itself to the correct place. If a base directory needs to be established, set it in a configuration file so you aren't modifying a script all the time.