cvs: pear-core /tests/PEAR_Command_Channels/channel-delete test.phpt /tests/PEAR_Registry/api1_1 test_addPackage2.phpt test_getChannel.phpt
test_getInstalledGroup.phpt
| From: | Greg Beaver | Date: | Thu, 23 Mar 2006 04:34:56 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Channels/channel-delete test.phpt /tests/PEAR_Registry/api1_1 test_addPackage2.phpt test_getChannel.phpt test_getInstalledGroup.phpt |
||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4643@lists.php.net to get a copy of this message | ||
cellog Thu Mar 23 04:34:56 2006 UTC
Modified files:
/pear-core/tests/PEAR_Command_Channels/channel-delete test.phpt
/pear-core/tests/PEAR_Registry/api1_1 test_addPackage2.phpt
test_getChannel.phpt
test_getInstalledGroup.phpt
Log:
MFB fix Bug #7023: 4 channel related tests fail
http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_Command_Channels/channel-delete/test.phpt?r1=1.4&r2=1.5&diff_format=u
Index: pear-core/tests/PEAR_Command_Channels/channel-delete/test.phpt
diff -u pear-core/tests/PEAR_Command_Channels/channel-delete/test.phpt:1.4
pear-core/tests/PEAR_Command_Channels/channel-delete/test.phpt:1.5
--- pear-core/tests/PEAR_Command_Channels/channel-delete/test.phpt:1.4 Fri Feb 3 05:05:12 2006
+++ pear-core/tests/PEAR_Command_Channels/channel-delete/test.phpt Thu Mar 23 04:34:56 2006
@@ -32,7 +32,10 @@
), $fakelog->getLog(), 'log');
$chan = $reg->getChannel('fake');
-$phpunit->assertFalse($chan, 'after delete');
+$phpunit->assertErrors(array(
+ array('package' => 'PEAR_Error', 'message' => 'Unknown
channel: fake')
+), 'after delete');
+$phpunit->assertIsa('PEAR_Error', $chan, 'after delete');
echo 'tests done';
?>
--CLEAN--
http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_Registry/api1_1/test_addPackage2.phpt?r1=1.8&r2=1.9&diff_format=u
Index: pear-core/tests/PEAR_Registry/api1_1/test_addPackage2.phpt
diff -u pear-core/tests/PEAR_Registry/api1_1/test_addPackage2.phpt:1.8
pear-core/tests/PEAR_Registry/api1_1/test_addPackage2.phpt:1.9
--- pear-core/tests/PEAR_Registry/api1_1/test_addPackage2.phpt:1.8 Fri Feb 3 04:00:04 2006
+++ pear-core/tests/PEAR_Registry/api1_1/test_addPackage2.phpt Thu Mar 23 04:34:56 2006
@@ -78,7 +78,8 @@
$ret = $reg->addPackage2($pf2);
$phpunit->assertErrors(array(
-array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Unknown channel "grob"')
+array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Unknown channel "grob"'),
+array('package' => 'PEAR_Error', 'message' => 'Unknown
channel: grob'),
), 'invalid pf2');
$phpunit->assertFalse($ret, 'invalid pf2');
http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_Registry/api1_1/test_getChannel.phpt?r1=1.3&r2=1.4&diff_format=u
Index: pear-core/tests/PEAR_Registry/api1_1/test_getChannel.phpt
diff -u pear-core/tests/PEAR_Registry/api1_1/test_getChannel.phpt:1.3
pear-core/tests/PEAR_Registry/api1_1/test_getChannel.phpt:1.4
--- pear-core/tests/PEAR_Registry/api1_1/test_getChannel.phpt:1.3 Fri Feb 3 04:00:04 2006
+++ pear-core/tests/PEAR_Registry/api1_1/test_getChannel.phpt Thu Mar 23 04:34:56 2006
@@ -28,9 +28,15 @@
$phpunit->assertNoErrors('setup');
$ret = $reg->getChannel('snark');
-$phpunit->assertFalse($ret, 'snark');
+$phpunit->assertErrors(array(
+ array('package' => 'PEAR_Error', 'message' => 'Unknown
channel: snark')
+), 'after snark');
+$phpunit->assertIsa('PEAR_Error', $ret, 'snark');
$ret = $reg->getChannel('foo', true);
-$phpunit->assertFalse($ret, 'foo strict');
+$phpunit->assertErrors(array(
+ array('package' => 'PEAR_Error', 'message' => 'Unknown
channel: foo')
+), 'after foo strict');
+$phpunit->assertIsa('PEAR_Error', $ret, 'foo strict');
$ret = $reg->getChannel('foo');
$phpunit->assertIsa('PEAR_ChannelFile', $ret, 'class 1');
$phpunit->assertEquals('test.test.test', $ret->getName(), 'foo');
http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_Registry/api1_1/test_getInstalledGroup.phpt?r1=1.6&r2=1.7&diff_format=u
Index: pear-core/tests/PEAR_Registry/api1_1/test_getInstalledGroup.phpt
diff -u pear-core/tests/PEAR_Registry/api1_1/test_getInstalledGroup.phpt:1.6
pear-core/tests/PEAR_Registry/api1_1/test_getInstalledGroup.phpt:1.7
--- pear-core/tests/PEAR_Registry/api1_1/test_getInstalledGroup.phpt:1.6 Fri Feb 3 04:00:04 2006
+++ pear-core/tests/PEAR_Registry/api1_1/test_getInstalledGroup.phpt Thu Mar 23 04:34:56 2006
@@ -78,7 +78,8 @@
$ret = $reg->addPackage2($pf2);
$phpunit->assertErrors(array(
-array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Unknown channel "grob"')
+array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Unknown channel "grob"'),
+array('package' => 'PEAR_Error', 'message' => 'Unknown
channel: grob'),
), 'invalid pf2');
$phpunit->assertFalse($ret, 'invalid pf2');