Hi
I know this post is a few months old, but i'm in a situation again where it's posing a problem.
I got around the original problem by simply running the unit tests from the windows run prompt, and typing the full path to the file. The problem with doing that though, is that it registers the document root as c:\wamp\www, whereas i have a virtual host in apache (and an IDE mapping) that configures the document root for the above project as c:\wamp\www\discovery\www. Now i need manipulation of the document root, i was wondering how to properly implement your solution.
I created another project, with the project root set to c:\wamp\www\discovery\lib\unittests. Run mode is HTTP (SRV local sever), with code insight includes set to c:\wamp\php4\pear. When i run a unit test, i get the following error:
Quote: |
Fatal error: main(): Failed opening required 'simpletest/unit_tester.php' (include_path='.;C:\Program Files\nusphere\phped\php\..\include_lib;C:\Program Files\nusphere\phped\php\PEAR') in C:\wamp\www\discovery\lib\tests\ArticleMapperUnitTests.php on line 2 |
... so i look at project properties->includes tab, thinking i might need to add a mapping or something, and theres hundreds of entries there! I'm not sure if they're supposed to be there or not, but i was hoping of adding a mapping to my local PEAR installation at c:\wamp\php4\PEAR and my overall projects (Workspace is it?) document root to .... unsure what. In fact i'm unsure how to proceed, so any advice would be appreciated.
Thanks.