svn: /pear2/Pyrus/trunk/ src/Pyrus/ScriptFrontend/Commands.php tests/ScriptFrontend/Commands/listPackages.cascade.phpt tests/ScriptFrontend/Commands/listPackages.pear1.phpt

[email protected] (Brett Bieber)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
saltybeagle                              Thu, 13 May 2010 18:39:00 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=299358

Log:
Sort list of installed packages for consistent output. Update expected results.

Changed paths:
    U   pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php
    U   pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.cascade.phpt
    U   pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.pear1.phpt

Modified: pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php	2010-05-13 18:31:22 UTC (rev 299357)
+++ pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php	2010-05-13 18:39:00 UTC (rev 299358)
@@ -614,6 +614,7 @@
             asort($packages);
             foreach ($packages as $channel => $stuff) {
                 echo "[channel $channel]:\n";
+                sort($stuff);
                 foreach ($stuff as $package) {
                     echo " $package\n";
                 }

Modified: pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.cascade.phpt
===================================================================
--- pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.cascade.phpt	2010-05-13 18:31:22 UTC (rev 299357)
+++ pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.cascade.phpt	2010-05-13 18:39:00 UTC (rev 299358)
@@ -32,8 +32,8 @@
  PHP_Archive
  Structures_Graph
  Text_Diff
- xdebug
- XML_Util',
+ XML_Util
+ xdebug',
                     $contents,
                     'list packages');
 ?>

Modified: pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.pear1.phpt
===================================================================
--- pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.pear1.phpt	2010-05-13 18:31:22 UTC (rev 299357)
+++ pear2/Pyrus/trunk/tests/ScriptFrontend/Commands/listPackages.pear1.phpt	2010-05-13 18:39:00 UTC (rev 299358)
@@ -25,8 +25,8 @@
  PHP_Archive
  Structures_Graph
  Text_Diff
- xdebug
- XML_Util',
+ XML_Util
+ xdebug',
                     $contents,
                     'list packages');
 ?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.