ZF-8784: Unit tests in Zend_Form_ElementTest fail since new NotEmpty implementation

Issue Type: Unit Tests: Problem Created: 2010-01-12T03:13:49.000+0000 Last Updated: 2010-01-12T04:05:25.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Menno Luiten (mluiten) Assignee: Thomas Weidner (thomas) Tags: - Zend_Form

  • Zend_Validate

Related issues: Attachments: - ZF-8784.patch


Since the new NotEmpty implementation in r20020, giving an array with one element, like is done in testSetOptionsSetsArrayOfArrayValidators and testSetOptionsSetsArrayOfAssociativeArrayValidators, defaults to the Validator expecting that one element to be a type, resulting in an Exception when 'bar' is given instead. Patch for unit test will be attached, assuming this API change will be documented.


Posted by Menno Luiten (mluiten) on 2010-01-12T03:24:32.000+0000

Proposed patch of the unit tests

Posted by Thomas Weidner (thomas) on 2010-01-12T04:05:24.000+0000

Fixed with r20214. Thanks for the patch.

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.