Issues

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

Issue Type: Unit Tests: Problem Created: 2008-08-11T02:39:35.000+0000 Last Updated: 2008-09-13T02:52:30.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Alexander Veremyev (alexander) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments:

Description

Unite test failure output:

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

Comments

Posted by Thomas Weidner (thomas) on 2008-08-11T02:58:28.000+0000

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

Posted by Alexander Veremyev (alexander) on 2008-08-11T03:30:37.000+0000

Ye-e-es!

Works OK now :)

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:18.000+0000

Updating for the 1.6.0 release.

Posted by Alexander Veremyev (alexander) on 2008-09-11T12:37:45.000+0000

Problem appears again (r11367)

Posted by Alexander Veremyev (alexander) on 2008-09-11T12:39:27.000+0000

(tested with the release-1.6 branch)

Posted by Alexander Veremyev (alexander) on 2008-09-11T12:40:42.000+0000

[ZF-4258] is probably related to this issue

Posted by Thomas Weidner (thomas) on 2008-09-11T22:42:31.000+0000

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.

Posted by Alexander Veremyev (alexander) on 2008-09-12T04:07:35.000+0000

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}

Posted by Thomas Weidner (thomas) on 2008-09-12T14:25:35.000+0000

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

Posted by Alexander Veremyev (alexander) on 2008-09-13T02:52:30.000+0000

Problem is actualy wrongly reopened.

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

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