This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » sf_environment setting gets lost if all unit tests are executed
sf_environment setting gets lost if all unit tests are executed [message #102264] Fri, 09 July 2010 14:55 Go to next message
hasc  is currently offline hasc
Messages: 195
Registered: October 2007
Senior Member
If i execute a single unit test:
symfony test:unit Foo

and and an exception is thrown within this script:
FooTest.php
...
throw new Exception(sfConfig::get('sf_environment'));

an exception with the message 'test' is thrown.

Now if I execute all unit tests
symfony test:unit

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.

Regards,
hasc



[Updated on: Fri, 09 July 2010 16:46]

Re: sf_environment setting gets lost if all unit tests are executed [message #102368 is a reply to message #102264 ] Mon, 12 July 2010 16:26 Go to previous messageGo to next message
hasc  is currently offline hasc
Messages: 195
Registered: October 2007
Senior Member
any help here would (still) be great.

[Updated on: Wed, 28 July 2010 11:20]

Re: sf_environment setting gets lost if all unit tests are executed [message #103177 is a reply to message #102368 ] Wed, 28 July 2010 11:50 Go to previous message
hasc  is currently offline hasc
Messages: 195
Registered: October 2007
Senior Member
can anyone confirm/reproduce this problem?
Previous Topic:overriding delete method in a Many-to-Many relation
Next Topic:CSRF attack detected
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software