cvs: pear-core /tests/PEAR_Command_Channels/channel-info test_remotefilefail.phpt
| From: | Greg Beaver | Date: | Tue, 14 Dec 2004 18:58:43 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Channels/channel-info test_remotefilefail.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-27388@lists.php.net to get a copy of this message | ||
cellog Tue Dec 14 13:58:43 2004 EDT
Added files:
/pear-core/tests/PEAR_Command_Channels/channel-info
test_remotefilefail.phpt
Log:
new test
http://cvs.php.net/co.php/pear-core/tests/PEAR_Command_Channels/channel-info/test_remotefilefail.phpt?r=1.1&p=1
Index: pear-core/tests/PEAR_Command_Channels/channel-info/test_remotefilefail.phpt
+++ pear-core/tests/PEAR_Command_Channels/channel-info/test_remotefilefail.phpt
--TEST--
channel-info command (remote channel.xml file failure)
--SKIPIF--
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
}
?>
--FILE--
<?php
error_reporting(E_ALL);
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$e = $command->run('channel-info', array(), array('http://pear.php.net/remotechannel.xml'));
$phpunit->assertErrors(array(
array('package' => 'PEAR_Error', 'message' => 'Cannot
open "http://pear.php.net/remotechannel.xml"'),
), '1');
$phpunit->showall();
$phpunit->assertEquals(array (
), $fakelog->getLog(), 'log 1');
echo 'tests done';
?>
--EXPECT--
tests done