|sf_environment setting gets lost if all unit tests are executed [message #102264]
||Fri, 09 July 2010 14:55
Registered: October 2007
If i execute a single unit test:|
and and an exception is thrown within this script:
throw new Exception(sfConfig::get('sf_environment'));
an exception with the message 'test' is thrown.
Now if I execute all unit tests
an exeption with an empty message is thrown.
So it seems like the environments settings somehow get lost if all unit tests are executed. This is a problem since I have configured multiple database connections and these connections are not configured correctly since the environment is not defined within sfConfig.
Any help would be great.
[Updated on: Fri, 09 July 2010 16:46]