Zend Framework

Enclosure Problem within unittests

Details

  • Type: Unit Tests: Problem Unit Tests: Problem
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.10.6
  • Fix Version/s: 1.11.0
  • Component/s: Zend_Loader
  • Labels:
    None

Description

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

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.

Issue Links

Activity

Hide
Dolf Schimmel (Freeaqingme) added a comment - - edited

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

Show
Dolf Schimmel (Freeaqingme) added a comment - - edited The world cup finale is going on at this moment. I'm not sure anybody cares about ZF and/or its issues.
Hide
Ramon Henrique Ornelas added a comment -

Fixed with r22969.

Show
Ramon Henrique Ornelas added a comment - Fixed with r22969.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: