Zend Framework

Zend_Validate_PostCodeTest present some failures

Details

  • Type: Unit Tests: Problem Unit Tests: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.6
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Validate
  • Labels:
    None

Description

With the correction made Zend_Validate_PostCode in the issue ZF-8612 r21485.

Some tests present failures are:

testErrorMessageText

Zend_Validate_PostCodeTest::testErrorMessageText
Failed asserting that <string:'hello' does not appear to be a postal code> contains "not appear to be an postal code".

/my_path/tests/Zend/Validate/PostCodeTest.php:185

testSetGetFormat

Zend_Validate_PostCodeTest::testSetGetFormat
Failed asserting that <string:A postcode-format string has to be given for validation> contains "a not empty string".

/my_path/tests/Zend/Validate/PostCodeTest.php:167

testSettingLocalesWithoutPostalCodes

Zend_Validate_PostCodeTest::testSettingLocalesWithoutPostalCodes
Failed asserting that <string:Unable to detect a postcode format for the region 'ER'> contains "Unable to detect a format".

/my_path/tests/Zend/Validate/PostCodeTest.php:134

Thanks advance

Activity

Hide
Ramon Henrique Ornelas added a comment -

Attached the patch to be parse.

Show
Ramon Henrique Ornelas added a comment - Attached the patch to be parse.
Hide
Thomas Weidner added a comment -

Fixed with r22523

Show
Thomas Weidner added a comment - Fixed with r22523

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: