ZF-3605: testIsLocale(Zend_LocaleTest) unit tests failure.
Description
There is unit tests failure with the following diagnostic:
{panel} 2) testIsLocale(Zend_LocaleTest) Failed asserting that is true. {panel}
There is unit tests failure with the following diagnostic:
{panel} 2) testIsLocale(Zend_LocaleTest) Failed asserting that is true. {panel}
Comments
Posted by Alexander Veremyev (alexander) on 2008-07-10T08:52:33.000+0000
The problem was in the lazy $_browser and $_environment class members initialization based on the $_auto value. (see Zend_Locale::isLocale() method).
$_auto is actually initialized early (in the Zend_Locale constructor).
So $_browser and $_environment were never initialised.
I also found getDefault(), getEnvironment() and getBrowser() methods dont have to be static.
Thomas, please review this patch (CS-10029) and conform if it's OK
Posted by Thomas Weidner (thomas) on 2008-07-12T01:46:33.000+0000
Have to check implementation myself as it changes the base class complete.
Posted by Thomas Weidner (thomas) on 2008-07-14T13:22:38.000+0000
Changed implementation, tested by Alexander
Posted by Alexander Veremyev (alexander) on 2008-07-26T09:07:33.000+0000
Changes are merged into release-1.5 branch to be included into ZF 1.5.3
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:02.000+0000
Updating for the 1.6.0 release.