ZF-4831: testToJson(Zend_PaginatorTest) unit tests problem

Issue Type: Unit Tests: Problem Created: 2008-11-06T09:07:54.000+0000 Last Updated: 2008-11-13T14:10:03.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Alexander Veremyev (alexander) Assignee: Jurrien Stutterheim (norm2782) Tags: - Zend_Paginator

Related issues: Attachments:


{panel} 9) testToJson(Zend_PaginatorTest) Failed asserting that two strings are equal. expected string <{"0":1,"1":2,"2":3,"3":4,"4":5,"5":6,"6":7,"7":8,"8":9,"9":10}> difference < xxxxxxxxxxxxxxxxxxxxxxxxxxxxx???????????????????????????????> got string <{"__className":"ArrayIterator"}> {panel}


Posted by Jurrien Stutterheim (norm2782) on 2008-11-08T03:27:16.000+0000

This seems to be an issue with Zend_Json. It looks like it doesn't convert an ArrayIterator to a JSON array when not using json_encode().

Posted by Jurrien Stutterheim (norm2782) on 2008-11-08T03:39:41.000+0000

This is a problem with Zend_Json_Encode and is reported in ZF-4874. I've updated the unit tests to mark the test skipped when json_encode() isn't available in r12421.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:03.000+0000

Changing issues in preparation for the 1.7.0 release.

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.