ZF-3605: testIsLocale(Zend_LocaleTest) unit tests failure.

Issue Type: Unit Tests: Problem Created: 2008-07-08T09:27:40.000+0000 Last Updated: 2008-09-02T10:39:02.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Alexander Veremyev (alexander) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


There is unit tests failure with the following diagnostic:

{panel} 2) testIsLocale(Zend_LocaleTest) Failed asserting that is true. {panel}


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.