ZF-4258: testBasic(Zend_Validate_File_NotExistsTest)

Issue Type: Unit Tests: Problem Created: 2008-09-11T12:39:46.000+0000 Last Updated: 2008-09-14T02:05:38.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

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

Related issues: Attachments:


Output: {panel} 15) testBasic(Zend_Validate_File_NotExistsTest) Failed asserting that matches expected value . {panel}

(tested with the release-1.6 branch)


Posted by Thomas Weidner (thomas) on 2008-09-11T23:16:44.000+0000

Erased linking...

Extension tests for string, NotExists tests for file_exists... these are completly different tests and have nothing to do with each other.

Posted by Thomas Weidner (thomas) on 2008-09-11T23:17:35.000+0000

Can you please verify this with trunk ?

Both have the same code base and I am not getting any error at all. Maybe a environment problem ?

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

Seems problem depends on an environment.

I tested it under Linux, PHP 5.2.5. It's the same environment which was used for ZF 1.6.0 testing.

Was there any code change which may affect Zend_Validate_File behavior? or is it definitely unit tests problem?

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

There has been changes to allow user definition of case sensitivy.

But in my environment all tests pass. So the problem must be Linux specific.

Can you evaluate on which line of the testbed the test fails so I can see the input and how the code runs ? Thanks

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

Line 104, first pass of the foreach() loop

Posted by Thomas Weidner (thomas) on 2008-09-13T11:51:49.000+0000

Probably fixed with r11388. False directory separator used.

Posted by Alexander Veremyev (alexander) on 2008-09-14T02:05:37.000+0000

Yes, that fixes the issue.

Merged into release-1.6 branch with the cs-11392.

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.