-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Description
I'm having troubles doing functional testing with multiple domains. It's a bit tricky, but I'll try to explain:
BrowserKit
puts cookies in a CookieJar
, in a domain[path][cookie]
hierarchy. The values for these 3 keys are obtained from Cookie
objects, which is created by the TestSessionListener
.
Herein lies the problem: the cookie params are obtained via session_get_cookie_params
, which uses the php-ini cookie values. Normally these are properly set in the NativeSessionStorage, not so much in the MockArraySessionStorage. This in turn leads to all sorts of problems when testing features that require cookies on a subdomain, for example when you have a "my.domain.org" subdomain.
/cc @Drak I believe you are the session-expert for Symfony 😉, do you have any ideas about this?