[Solar-talk] New PHPUnit3 Tests

Rodrigo Moraes rodrigo.moraes at gmail.com
Thu Dec 7 07:34:53 PST 2006


On 12/7/06, Paul M Jones wrote:
> Well that sucks -- what kinds of errors?

I was writing a report. For the current SVN I have:

FAILURES!
Tests: 909, Failures: 16, Errors: 424, Skipped: 60.

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

423) testTemplate(Solar_ViewTest)
Solar_Exception_FileNotReadable: File does not exist or is not readable
K:\Libraries\SVN\Solar\trunk\Solar.php:850
K:\Libraries\SVN\Solar\trunk\Solar.php:486
K:\Libraries\SVN\Solar\trunk\Solar.php:1045
K:\Libraries\SVN\Solar\trunk\Solar.php:200
K:\Libraries\SVN\Solar\trunk\tests\Solar\ViewTest.php:12

If I include the full path for the config file in ViewTest.php, I get
406 errors and most of them are "Solar_Exception:
ERR_CLASS_NOT_FOUND". For example:

401) test__construct(Solar_View_Helper_TimestampTest)
Solar_Exception: ERR_CLASS_NOT_FOUND
K:\Libraries\SVN\Solar\trunk\Solar.php:860
K:\Libraries\SVN\Solar\trunk\Solar\Base.php:178
K:\Libraries\SVN\Solar\trunk\Solar\Class\Stack.php:195
K:\Libraries\SVN\Solar\trunk\Solar\View.php:380
K:\Libraries\SVN\Solar\trunk\Solar\View.php:359
K:\Libraries\SVN\Solar\trunk\tests\Solar\View\HelperTestCase.php:26

So I guess the problem is in the include_path. I've killed the
configRunner by adding these lines to the end of the file:

echo get_include_path();
die();

The result is:

.;K:\server\pear;K:\Libraries\SVN\Solar\trunk\tests/support/;K:\Libraries\SVN\So
lar\trunk\tests/..;.;K:\server\pear

I've hacked configRunner to replace slashes by DIRECTORY_SEPARATOR in
the paths, but the number of errors is still 406. Also tried to set
solar_path directly: still 406 errors.

Is the include path above supposed to be ok (given that the path is
correct to the libraries)?

any other clues?

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