cvs: pear-core / package-PEAR.xml package2.xml /PEAR Registry.php /tests/PEAR_Registry/api1_1 test_getChannelValidator.phpt

From: Date: Sun, 05 Mar 2006 04:39:40 +0000
Subject: cvs: pear-core / package-PEAR.xml package2.xml /PEAR Registry.php /tests/PEAR_Registry/api1_1 test_getChannelValidator.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4599@lists.php.net to get a copy of this message
cellog Sun Mar 5 04:39:40 2006 UTC Modified files: /pear-core/PEAR Registry.php /pear-core package-PEAR.xml package2.xml /pear-core/tests/PEAR_Registry/api1_1 test_getChannelValidator.phpt Log: * fix Bug #7020: tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt crashes PEAR # this one does not affect the PEAR installer at all http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Registry.php?r1=1.149&r2=1.150&diff_format=u Index: pear-core/PEAR/Registry.php diff -u pear-core/PEAR/Registry.php:1.149 pear-core/PEAR/Registry.php:1.150 --- pear-core/PEAR/Registry.php:1.149 Sat Mar 4 15:26:20 2006 +++ pear-core/PEAR/Registry.php Sun Mar 5 04:39:40 2006 @@ -17,7 +17,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Registry.php,v 1.149 2006/03/04 15:26:20 cellog Exp $ + * @version CVS: $Id: Registry.php,v 1.150 2006/03/05 04:39:40 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -1792,7 +1792,7 @@ function &getChannelValidator($channel) { $chan = $this->getChannel($channel); - if (!$chan) { + if (PEAR::isError($chan)) { return $chan; } $val = $chan->getValidationObject(); http://cvs.php.net/viewcvs.cgi/pear-core/package-PEAR.xml?r1=1.351&r2=1.352&diff_format=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.351 pear-core/package-PEAR.xml:1.352 --- pear-core/package-PEAR.xml:1.351 Sat Mar 4 15:26:20 2006 +++ pear-core/package-PEAR.xml Sun Mar 5 04:39:40 2006 @@ -92,6 +92,7 @@ * fix Bug #6991: Class 'PEAR_PackageFile_v1' not found in Registry.php at line 1657 * fix Bug #7008: PEAR_Frontend::setFrontendObject doesn't set the object * fix Bug #7015: install a package.tgz with unknown channel, fatal error in PEAR/Registry.php + * fix Bug #7020: tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt crashes PEAR </notes> <provides type="class" name="OS_Guess"/> <provides type="class" name="System"/> http://cvs.php.net/viewcvs.cgi/pear-core/package2.xml?r1=1.245&r2=1.246&diff_format=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.245 pear-core/package2.xml:1.246 --- pear-core/package2.xml:1.245 Sat Mar 4 15:26:20 2006 +++ pear-core/package2.xml Sun Mar 5 04:39:40 2006 @@ -97,6 +97,7 @@ * fix Bug #6991: Class 'PEAR_PackageFile_v1' not found in Registry.php at line 1657 * fix Bug #7008: PEAR_Frontend::setFrontendObject doesn't set the object * fix Bug #7015: install a package.tgz with unknown channel, fatal error in PEAR/Registry.php + * fix Bug #7020: tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt crashes PEAR </notes> <contents> <dir name="/"> http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt?r1=1.3&r2=1.4&diff_format=u Index: pear-core/tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt diff -u pear-core/tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt:1.3 pear-core/tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt:1.4 --- pear-core/tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt:1.3 Fri Feb 3 04:00:04 2006 +++ pear-core/tests/PEAR_Registry/api1_1/test_getChannelValidator.phpt Sun Mar 5 04:39:40 2006 @@ -28,7 +28,9 @@ $phpunit->assertNoErrors('setup'); $ret = $reg->getChannelValidator('snark'); -$phpunit->assertFalse($ret, 'snark'); +$phpunit->assertErrors(array( + array('package' => 'PEAR_Error', 'message' => 'Unknown channel: snark'), + ), 'snark'); $ret = $reg->getChannelValidator('foo'); $phpunit->assertIsa('PEAR_Validate', $ret, 'foo'); $ret = $reg->getChannelValidator('test.test.test');

« previous php.pear.core (#4599) next »