Hi, In my test system, I have several databases which are allocated for use based on the ip address of the originating browser's request. That is, I allocate dbA to be used by 10.0.0.10, and dbB to be used by 10.0.0.11, etc.. This is done is to allow parallel tests where each test modifies the db.
I determine the ip address by doing *
sfContext::getInstance()->getRequest()->getHttpHeader('addr','remote');*
just before *sfContext::getInstance()->getController()->dispatch();* in my
*web/webapp_test.php* file. The ip address is then used for a lookup to
find its associated db.
Here is the problem: Once 'dispatch()' is called, what is the best way to
pass the chosen db name to that dispatch'd instance? In other words, I know
what db is to be used, but I'm not sure how/where to store the info for
recovery when my lime test begins.
I tried calling *
sfContext::getInstance()->getRequest()->getHttpHeader('addr','remote')* a
second time just before the test method is called, but that doesn't work --
the request is already gone by that time.
Ideas anyone? :)
--
Tks,
-T
-- You received this message because you are subscribed to the Google Groups "symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
