[Solar-talk] Hard coded temp dir in unit tests

Andrew Shell andrew at andrewshell.org
Mon Sep 18 12:19:23 PDT 2006


I'm running Solar on Windows/Apache and I've noticed that in the unit 
tests the temp dir in the tests is more or less hard coded to /tmp which 
does not exists on windows.  I can get them to work by defining new 
paths in the config.inc.php file.

I have to do this for Test_Solar_Cache_Adapter_File, 
Test_Solar_Log_Adapter_File and Test_Solar_Log_Adapter_Multi.  Should we 
include some of this configuration in the config.inc.php file by default 
so people who plan to run the tests can see those options right away and 
update them for their system?  Another possibility is to create a temp 
dir in the distribution and have the paths set to this folder 
automatically in a platform agnostic manner.  What do people think of this?

Andrew Shell


More information about the solar-talk mailing list