zendframework/zf2 — pull request #1149 by Maks3w (2012-05-06 16:28:21+00:00)
Title: [WIP][Locale] Fix Unit tests

This is a Work In Progress because this is not enough clear how to fix this.

```bash
There was 1 failure:

1) ZendTest\Locale\FormatTest::testIsDate
Failed asserting that true is false.

zf2\tests\Zend\Locale\FormatTest.php:649
```
This issue exists in ZF1 too and if we look the tests we can see weird things like this:
```php
$this->assertTrue( Format::checkDateFormat('20.April', array('date_format' => 'MMMM.YYYY' )));
```
So IMHO implementation and tests are wrong because it should be assertFalse.
This changes was introduced in SVN r22551 and more.

```bash
There were 11 errors:

1) ZendTest\Locale\LocaleTest::testgetLanguageTranslationList
Zend\Locale\Exception\InvalidArgumentException: Unknown list (language) for parsing locale data.

zf2\library\Zend\Locale\Data\Cldr.php:844
zf2\library\Zend\Locale\Locale.php:755
zf2\tests\Zend\Locale\LocaleTest.php:224

... more
```
Seems that the tests are outdated since 046f5654a26c2f369eaf398123c4a6fa3f4943dd I don't know the reasons because the old code become to be incompatible. This a specific ZF2 change Should we restore the old lines in Cldr.php?