I am trying to use SimpleTest with CodeIgniter using the code provided by maroonbytes . I am using LAMP and NetBeans 6.9.
The test.php page loads in my browser. I have a stub test and it is displayed in a drop down list. When I try to run it, I get 2 PHP errors:
Message: include_once (/var/www/sparts3/main/tests/basic_test_v.php): could not open the stream: there is no such file or directory
Message: include_once (): Failed to open '/var/www/sparts3/main/tests/basic_test_v.php' for inclusion (Include_path = ': / USR / share / PHP: / USR / share / pear')
The path is wrong - basic_test_v.php is located in the / tests / views subfolder .
The debugger points this out in test.php :
function add_test($file, &$test)
For some reason, NetBeans is not revealing the value of $ file at the moment. Does this mean that it is empty?
I already ran a line of code because I managed to get past the 404 code. Page not found. the GET debugger seemed to make the validator fail. So I added the criteria, in my uninformed way (I'm sure this should be a handled exception or something else):
if ($this->uri->uri_string == '' || $this->uri->uri_string == 'XDEBUG_SESSION_START')
{ ... }
How can i solve this? BTW, this is an attempt to solve my other post , which I will update; it would seem better to make this a discrete question.
1: - (Firefox) POST. , . - , NetBeans ; .
2: , . NetBeans . test.php. add_test ($ file, & $test). if; , . if:
if (file_exists($implementation))
{
require_once ($implementation); ...
, :
- NetBeans
SuperGlobals
- ,
$ -
:
$implementation = 'http://var/www/sparts3/main/tests/views/basic_test_view.php';
. , NetBeans/Xdebug .
, PHP. ? - , CI .
3: WAMP. ( "" , - PHP 4 5). , ( Xdebug ), , , .