ZF-10134: Enclosure Problem within unittests

Issue Type: Unit Tests: Problem Created: 2010-07-11T12:02:27.000+0000 Last Updated: 2010-09-18T12:58:31.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Thomas Weidner (thomas) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Loader

Related issues: - ZF-10371



When running the unittestbed (AllTests) under the minimum required PHP release for the framework (5.2.4), it fails.

<pre class="highlight">
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in C:\Voxtronic\
3rdParty\Zend Framework\tests\Zend\Loader\AutoloaderTest.php on line 394

Reason is that the test is written for PHP 5.3 but PHP 5.2 fails to read the code. So the complete unittest fails by design.

It would be better to extract the related code into a own php file which is called/included when the release is >= 5.3.

Actually it is not possible to run AllTests under the 5.2 branch.


Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-07-11T12:05:49.000+0000

The world cup finale is going on at this moment. I'm not sure anybody cares about ZF and/or its issues.

Posted by Ramon Henrique Ornelas (ramon) on 2010-09-18T12:58:25.000+0000

Fixed with r22969.

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.