ZF-3919: testBasic(Zend_Validate_File_ExtensionTest) unit test failure.

Description

Unite test failure output:

{panel} 1) testBasic(Zend_Validate_File_ExtensionTest) Failed asserting that matches expected value . {panel}

Comments

This was fixed with r10867 yesterday. It just waits for your approvement for branch :-)

Ye-e-es!

Works OK now :)

Updating for the 1.6.0 release.

Problem appears again (r11367)

(tested with the release-1.6 branch)

[ZF-4258] is probably related to this issue

I am getting no error in trunk. And trunk has the same code as branch.

Can you verify this problem also for trunk ? You assigned it to trunk but wrote in the comment branch...

When it's also in trunk then this seems to be a environment problem with isReadable or pathinfo and needs deeper investigation.

Yes, it also appears in trunk (as well, as [ZF-4258] issue): {panel} There were 2 failures:

1) testBasic(Zend_Validate_File_ExistsTest) Failed asserting that matches expected value .

2) testBasic(Zend_Validate_File_NotExistsTest) Failed asserting that matches expected value . {panel}

trunk version also produces a set of errors: {panel} There were 6 errors:

1) testCanSetTranslator(Zend_Validate_AbstractTest) No translation for the language 'en' available. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:313 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:108 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter/Array.php:47 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:95 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:72

2) testCanSetTranslatorToNull(Zend_Validate_AbstractTest) No translation for the language 'en' available. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:313 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:108 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter/Array.php:47 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:95 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:72

3) testCanSetGlobalDefaultTranslator(Zend_Validate_AbstractTest) No translation for the language 'en' available. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:313 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:108 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter/Array.php:47 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:95 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:72

4) testGlobalDefaultTranslatorUsedWhenNoLocalTranslatorSet(Zend_Validate_AbstractTest) No translation for the language 'en' available. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:313 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:108 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter/Array.php:47 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:95 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:72

5) testGlobalTranslatorFromRegistryUsedWhenNoLocalTranslatorSet(Zend_Validate_AbstractTest) No translation for the language 'en' available. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:313 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:108 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter/Array.php:47 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:95 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:72

6) testLocalTranslatorPreferredOverGlobalTranslator(Zend_Validate_AbstractTest) No translation for the language 'en' available. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:313 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter.php:108 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate/Adapter/Array.php:47 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:95 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Translate.php:72 {panel}

These are 3 different things. Please let us concentrate on the origin issue before doing the other which just means that the tests do not cover the triggered error on empty translation files.

So the general change is that extensions can now be case sensitive. But wether the code, nor the testbed should be affected. In my environment there is no problem wether in trunk nor in branch.

Can you evaluate for me at which line in the testbed the failure occurs ? I'm missing the linenumber where the error occurs in the testbed.

Looking only at the ExistsTest should be enough for both tests as the second class is a nearly clone of it.

Thanks

Problem is actualy wrongly reopened.

The actual issue is registered as [ZF-4277]. See info there.