ZF-10371: Zend_Loader_AutoloaderTest: should run in PHP 5.2.x
Description
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
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-23T12:45:23.000+0000
Hi Benoît
I think that [~thomas] reported problem similar.
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-23T12:50:28.000+0000
Here is the issue ZF-10134.
Posted by Ramon Henrique Ornelas (ramon) on 2010-09-18T12:57:59.000+0000
Fixed with r22969.