Connecting Tech Pros Worldwide Help | Site Map

Set include_path for SimpleTest under Eclipse

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 22nd, 2007, 03:15 PM
Bastien Continsouzas
Guest
 
Posts: n/a
Default Set include_path for SimpleTest under Eclipse

I am trying to set the include path for SimpleTest under Eclipse

I have the following config :
Eclipse : 3.2.0
PHPEclipse 1.1.8
SimpleTest plugin : 0.2.1

I ran a test I found on the SimpleTest plugin page and it worked fine
http://simpletest.org/en/extension_eclipse.html

I am now trying to test an existing class but when I call :
Quote:
require_once('mylog.php');
I get the following error :
----
PHP Fatal error: require_once(): Failed opening required
'mylog.php' (include_path='.:/usr/share/pear:/usr/share/php:/home/
user/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/
net.sf.simpletest.eclipse_0.2.1/simpletest') in /home/user/workspace/
project/test/simpletest/tests/test_log.php on line 4
----

I would like to find a way to add one or more paths to the
include_path directive (using an eclipse or a simpletest setting).

I would prefer to avoid adding something like that to the code :
ini_set('include_path', $classdir . ':' . ini_get('include_path'));

Any ideas ?

Thanks,
Bastien


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.