cvs: pear-core /tests/PEAR_Command_Install/upgrade-all test.phpt
| From: | Greg Beaver | Date: | Mon, 20 Apr 2009 04:34:54 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Install/upgrade-all test.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8358@lists.php.net to get a copy of this message | ||
cellog Mon Apr 20 04:34:54 2009 UTC
Modified files:
/pear-core/tests/PEAR_Command_Install/upgrade-all test.phpt
Log:
make test work on inferior PHP versions (those less than the erm, unreleased php 5.3 :)
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt?r1=1.16&r2=1.17&diff_format=u
Index: pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt
diff -u pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.16
pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.17
--- pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.16 Sat Apr 18 19:36:20 2009
+++ pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt Mon Apr 20 04:34:53 2009
@@ -10232,7 +10232,8 @@
$phpunit->assertNoErrors('after upgrade');
$log = array_slice($fakelog->getLog(), 0, 5);
-usort($log, function($a, $b) {return strnatcasecmp($a['info']['data'],
$b['info']['data']);});
+function poop($a, $b) {return strnatcasecmp($a['info']['data'],
$b['info']['data']);}
+usort($log, 'poop');
$phpunit->assertEquals(
array (