Issues

ZF2-56: BC in API of Zend\Json\Decoder fails some unit tests

Issue Type: Unit Tests: Problem Created: 2011-08-29T20:38:33.000+0000 Last Updated: 2011-09-03T08:04:45.000+0000 Status: Resolved Fix version(s): Reporter: Benoît Durand (intiilapa) Assignee: Benoît Durand (intiilapa) Tags: - Zend\Mvc\Controller

Related issues: - ZF2-54

Attachments:

Description

Since the commit f7858efb, Zend\Json\Decoder returns objects instead of arrays in the default behavior. We need to fix some unit tests that use the default second argument of the method decode().

<pre class="highlight">
$ phpunit Zend/Controller/
PHPUnit 3.5.10 by Sebastian Bergmann.

.....E.......PHP Fatal error:  Cannot use object of type stdClass as array in zf2/tests/Zend/Controller/Action/Helper/AutoCompleteTest.php on line 101

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts