|
From: Steven B. <ste...@gm...> - 2008-12-03 14:57:51
|
On Tue, Dec 2, 2008 at 9:29 PM, arpit agarwal <arp...@ya...> wrote:
> Hi,
>
> As i extract the source file i got the eclipse.php and unit_tester.php with
> other files and i had placed at mention path yet it is given error on
> console.I am using PHP 5
>
>
> unning:
>
> echo "<?php
> $path='C:\simpletest_1.0.1.eclipse_0.2.4';ini_set('include_path',
> get_include_path().PATH_SEPARATOR .
> realpath($path));ini_set('html_errors','0');$fullpath =
> realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.php');$pathparts
> = pathinfo($fullpath);$filename =
> $pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new
> GroupTest($filename);$test->addTestFile($fullpath);$test->run(new
> XmlReporter()); ?>" | "C:\Program Files\PHP\php.exe" -q -c "C:\Program
> Files\PHP\php.ini"
>
> *************
>
> PHP Warning: include_once(eclipse.php): failed to open stream: No such file
> or directory in C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php on line 1
>
> PHP Stack trace:
>
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php:0
>
> PHP Warning: include_once(): Failed opening 'eclipse.php' for inclusion
> (include_path='C:\PHP\workspace\AIJoabBoard2008\src;C:\simpletest_1.0.1.eclipse_0.2.4')
> in C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php on line 1
>
> PHP Stack trace:
>
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php:0
>
> PHP Fatal error: Class 'GroupTest' not found in C:\Documents and
> Settings\arpit716\Local Settings\Temp\Simpletest54908.php on line 1
>
> PHP Stack trace:
>
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php:0
>
> Process returned: 255
>
> Thanks
> Arpit
I think you misunderstood my instructions from yesterday. You should
not move the files eclipse.php and unit_tester.php; you should change
the path in the eclipse preferences to point to the correct directory.
The directory that you select in the preferences needs to have
eclipse.php and unit_tester.php in it, but it should have the rest of
the simpletest files also. Your path is still not correct.
One way to absolutely solve this problem is:
1. download the simpletest_1.0.1 tarball from:
http://sourceforge.net/project/showfiles.php?group_id=76550
2. extract this tarball to your local machine
3. find the directory from the extracted tarball which has the files:
eclipse.php and unit_tester.php -- copy the path for this directory
into the Simpletest preferences in eclipse.
Regards,
Steven Balthazor
|