[Solar-talk] New PHPUnit3 Tests

Travis Swicegood development at domain51.com
Thu Dec 7 07:54:26 PST 2006


Rodrigo Moraes wrote:
> Many of the errors are related to the inclusion of the config file in
> ViewTest.php, line 12:
>   

That has been fixed in SVN for awhile now.  It should read:

    Solar::start('config.inc.php');

> The result is:
>
> .;K:\server\pear;K:\Libraries\SVN\Solar\trunk\tests/support/;K:\Libraries\SVN\So
> lar\trunk\tests/..;.;K:\server\pear
>
> Is the include path above supposed to be ok (given that the path is
> correct to the libraries)?
>   

Hmm... It's not finding Solar.  Make sure the path to Solar is in the 
code_path.  'solar_path' is not being used any longer.  It looks like 
you have this at line 61 of SolarUnitTest.config.php:

    $config['code_path'][] = dirname(__FILE__) . '/..';

That is correct in *nix, but that might need to be a "\" in the Windows 
world, although I was under the impression that PHP on Windows would 
allow you to use either style of slash.  Try changing it to:

    $config['code_path'][] = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..';

Let me know if that fixes it for you...

-T


More information about the solar-talk mailing list