[Solar-talk] New PHPUnit3 Tests
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Dec 7 09:15:26 PST 2006
On 12/7/06, Travis Swicegood wrote:
> 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');
Yes, it is the same. I'm using the latest Solar SVN.
> 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...
I've tried this before, and also to set the full path to Solar in
code_path (and not solar_path as I said). Also I tried to set all the
paths directly on php.ini...
However... hmmm. The phpunit.bat file I use doesn't include
SolarUnitTest.config.php before running Command.php:
set PHPBIN="k:\server\php5\php.exe"
"%PHPBIN%" "K:\server\pear\pear/PHPUnit/TextUI/Command.php" %*
So I've created a bat file in the tests dir and changed it to this:
set PHPBIN="k:\server\php5\php.exe"
"%PHPBIN%" "K:\Libraries\SVN\Solar\trunk\tests\SolarUnitTest.config.php"
"%PHPBIN%" "K:\server\pear\pear/PHPUnit/TextUI/Command.php" %*
I don't know if it makes sense, but perhaps not because the number of
errors is still the same. Would need someone with some PHPUnit+Windows
experience to tell me what I'm doing wrong.
anyway, thanks.
rodrigo
---------------------------------------------------------------------
Solar has now a Community Wiki: solarphp.org
---------------------------------------------------------------------
Join the #solarphp IRC channel on freenode.org
---------------------------------------------------------------------
More information about the solar-talk
mailing list