ZF-12201: Zend_Filter_HtmlEntitiesTest fails on Windows

Issue Type: Bug Created: 2012-05-10T20:34:52.000+0000 Last Updated: 2012-06-13T20:17:57.000+0000 Status: Open Fix version(s): Reporter: Tomáš Fejfar ( Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

  • After1.12.0

Related issues: Attachments:


Windows 7 32bit, PHP 5.3.8, PHPUnit 3.4.15, ZF revision 24790

<pre class="highlight">There were 2 failures:

1) Zend_Filter_HtmlEntitiesTest::testStripsUnknownCharactersWhenEncodingMismatchDetected
Failed asserting that  contains """".


2) Zend_Filter_HtmlEntitiesTest::testRaisesExceptionIfEncodingMismatchDetectedAndFinalStringIsEmpty
Expected exception from single non-utf-8 character


Problem is that latin1 dash is happily encoded into HTML — and therefore it's not removed in 1 and exception is not thrown in 2. Not really sure why this happens. The content is safely escaped but the tests make wrong assumptions. Based on that I marked the issue as Minor.


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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