ZF-2169: testToFloatSetlocale(Zend_Locale_FormatTest) unit tests fails
Description
Error message:
4) testToFloatSetlocale(Zend_Locale_FormatTest)
Failed asserting that two strings are equal.
expected string <1 234,00>
difference < x>
got string <1 234,50>
/usr/local/Zend/ZendFramework/tests/Zend/Locale/FormatTest.php:904
/usr/local/Zend/ZendFramework/tests/AllTests.php:45
/usr/local/Zend/ZendFramework/tests/AllTests.php:61
Comments
Posted by Thomas Weidner (thomas) on 2007-11-27T01:23:08.000+0000
Alex, can you please test with the latest revision from trunk ? And change your local "Format.php" within "Zend/Locale/" directory with the here attached one ?
Please return me the debug output for both tests.
THANKS
Posted by Thomas Weidner (thomas) on 2007-11-27T01:24:14.000+0000
Debug Version
Posted by Thomas Weidner (thomas) on 2007-12-15T16:17:09.000+0000
Without the output of the attached debug version I will not be able to fix this error... If there is no response anymore I will close this one as it seems that it is then already fixed.
Posted by Thomas Weidner (thomas) on 2007-12-29T11:27:33.000+0000
As I am not getting response since 27.November my own tests did not show this error I expect that it does no longer exist.
If it does, please reopen and give detail report of the attached debug version.
Posted by Darby Felton (darby) on 2008-01-02T09:07:56.000+0000
After adding a line to {{Zend/Locale/FormatTest.php}} that includes the {{TestHelper.php}} script for {{include_path}} specification:
produced the output:
Posted by Darby Felton (darby) on 2008-01-02T09:08:38.000+0000
Reopening issue with output from tests
Posted by Thomas Weidner (thomas) on 2008-01-07T14:48:50.000+0000
Debug Version for the new release
Posted by Darby Felton (darby) on 2008-01-07T14:57:19.000+0000
testing comments....
Posted by Thomas Weidner (thomas) on 2008-01-07T15:00:10.000+0000
Darby,
I don't know why now all comments are gone so I try to answer your comment from my memory:
Within my testbed I don't have to add an include... I can run phpunit Zend_Locale_FormatTest instantly. I was also not able to verify the behaviour that the output of "precstr" breaks the test.
Because the I18N core has been rewritten, I had also to change the debug version. The above mentioned problem does now no longer occur.
But the generated output is "VERY" complete. It would be best if you add the debug output as attachment so I can read through it. This new version must be tested with the latest SVN.
Thank you for your help on this one...
Posted by Wil Sinclair (wil) on 2008-01-07T15:08:00.000+0000
Comments should be OK now.
Posted by Thomas Weidner (thomas) on 2008-01-07T15:16:19.000+0000
Thanks Wil
Posted by Darby Felton (darby) on 2008-01-07T15:35:36.000+0000
I can no longer reproduce the error messages, so it looks like this is fixed for me, too. Attaching latest output just in case it's useful. Thanks, Thomas! :)
Posted by Thomas Weidner (thomas) on 2008-01-07T16:00:33.000+0000
I looked through the output and saw no problems. Eighter the changed default behaviour or the new LDML implementation has done it.
Anyhow, because it is fixed with the actual release, I will close this issue.
Posted by Thomas Weidner (thomas) on 2008-01-07T16:01:38.000+0000
Fixed with SVN-7357
Posted by Darby Felton (darby) on 2008-01-08T16:12:09.000+0000
Relates to [ZF-2272]