Re: cvs: pear-core /tests/PEAR_Command_Install/upgrade-all test.phpt /tests/PEAR_Downloader_Package test_initialize_abstractpackage_discover.phpt
/tests/PEAR_Downloader_Package/test_initialize_downloadurl testfoo-1.0.tgz /tests/PEAR_Instal
| From: | Helgi Þormar Þorbjörnsson | Date: | Sat, 18 Apr 2009 20:11:11 +0000 |
| Subject: | Re: cvs: pear-core /tests/PEAR_Command_Install/upgrade-all test.phpt /tests/PEAR_Downloader_Package test_initialize_abstractpackage_discover.phpt /tests/PEAR_Downloader_Package/test_initialize_downloadurl testfoo-1.0.tgz /tests/PEAR_Instal |
||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8355@lists.php.net to get a copy of this message | ||
On Sat, Apr 18, 2009 at 8:36 PM, Greg Beaver <cellog@php.net> wrote:
> cellog Sat Apr 18 19:36:20 2009 UTC
>
> Added files:
> /pear-core/tests/PEAR_Downloader_Package/test_initialize_downloadurl
>
> testfoo-1.0.tgz
>
> Modified files:
> /pear-core/tests/PEAR_Command_Install/upgrade-all test.phpt
> /pear-core/tests/PEAR_Downloader_Package
>
> test_initialize_abstractpackage_discover.phpt
> /pear-core/tests/PEAR_Installer
>
> test_install_complexlocalpackage2_force.phpt
>
> test_install_complexlocalpackage2_ignore-errors.phpt
>
> test_install_complexlocalpackage2_ignore-errorssoft.phpt
> Log:
> all tests pass with this commit
>
>
> http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt?r1=1.15&r2=1.16&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.15
> pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.16
> --- pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.15 Mon Feb 23 23:00:42
> 2009
> +++ pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt Sat Apr 18 19:36:20 2009
> @@ -10230,9 +10230,12 @@
> $command->run('upgrade-all', array(), array());
>
> $phpunit->assertNoErrors('after upgrade');
> +
> +$log = array_slice($fakelog->getLog(), 0, 5);
> +usort($log, function($a, $b) {return strnatcasecmp($a['info']['data'],
> $b['info']['data']);});
> +
This does not work on PHP 4 nor 5.2 since closures are PHP 5.3 only -
Please look into it and fix those tests when you have time :)
Regards
Helgi