Locale Unit tests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Locale Unit tests

Emmanuel Bouton
Hello,

I'd like to test the plugin which set the locale in my application.
My problem is that the Zend_Locale class stores the default settings
in static variables ($_auto, $_browser, etc) and don't provide a
method to refresh its.
So the changes on my environment settings (HTTP_ACCEPT_LANGUAGE) in
the beginning of my tests, are not taken into account (except in the
first test).

Does anyone have a suggestion to resolve my issue ?
(don't want to activate processIsolation on phpunit ;))

Thanks,
Emmanuel

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]