cvs: pear-core /tests/PEAR_Command_Remote/list-upgrades test.phpt

From: Date: Sun, 17 Apr 2005 22:01:26 +0000
Subject: cvs: pear-core /tests/PEAR_Command_Remote/list-upgrades test.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-31264@lists.php.net to get a copy of this message
cellog Sun Apr 17 18:01:26 2005 EDT Modified files: /pear-core/tests/PEAR_Command_Remote/list-upgrades test.phpt Log: fix test http://cvs.php.net/diff.php/pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt diff -u pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt:1.3 pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt:1.4 --- pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt:1.3 Sat Feb 19 22:08:10 2005 +++ pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt Sun Apr 17 18:01:25 2005 @@ -1,5 +1,5 @@ --TEST-- -remote-list command +list-upgrades command --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { @@ -89,18 +89,7 @@ $reg->addChannel($ch); $e = $command->run('list-upgrades', array(), array()); $phpunit->assertNoErrors('pear.php.net'); -$workingcopy = array ( - 'empty' => - array ( - 'info' => 'Channel empty: No upgrades available', - 'cmd' => 'no command', - ), - 'pecl.php.net' => - array ( - 'info' => 'Channel pecl.php.net: No upgrades available', - 'cmd' => 'no command', - ), - 'pear.php.net' => +$actual = array ( array ( 'info' => array ( @@ -128,21 +117,7 @@ ), 'cmd' => 'list-upgrades', ), - 'smoog' => - array ( - 'info' => 'Channel smoog: No upgrades available', - 'cmd' => 'no command', - ), ); -$actual = array(); -// this is because channels are queried in the order returned from listChannels(), -// which differs between windows and linux -foreach ($reg->listChannels() as $chan) { - if ($chan == '__uri') { - continue; - } - $actual[] = $workingcopy[$chan]; -} $phpunit->assertEquals($actual , $fakelog->getLog(), 'pear log'); echo 'tests done';

« previous php.pear.cvs (#31264) next »