ZF-10371: Zend_Loader_AutoloaderTest: should run in PHP 5.2.x


We can not run Zend_Loader_AutoloaderTest (and AllTests.php in fact), because the testClosuresRegisteredWithAutoloaderShouldBeUtilized() method use a closure. A closure in PHP 5.2.x is a syntax error. And, you can't skip a syntax error with "version_compare(PHP_VERSION, '5.3.0', '<'))".

$ phpunit --colors tests/Zend/Loader/AutoloaderTest.php PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /zf-svn/tests/Zend/Loader/AutoloaderTest.php on line 394


Hi Benoît

I think that [~thomas] reported problem similar.

Here is the issue ZF-10134.

Fixed with r22969.