cvs: pear-core /tests/PEAR_Command_Channels/channel-info test_fail.phpt
| From: | Greg Beaver | Date: | Tue, 14 Dec 2004 19:07:17 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Channels/channel-info test_fail.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-27389@lists.php.net to get a copy of this message | ||
cellog Tue Dec 14 14:07:17 2004 EDT
Added files:
/pear-core/tests/PEAR_Command_Channels/channel-info test_fail.phpt
Log:
new test
http://cvs.php.net/co.php/pear-core/tests/PEAR_Command_Channels/channel-info/test_fail.phpt?r=1.1&p=1
Index: pear-core/tests/PEAR_Command_Channels/channel-info/test_fail.phpt
+++ pear-core/tests/PEAR_Command_Channels/channel-info/test_fail.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('smurg'));
$phpunit->assertErrors(array(
array('package' => 'PEAR_Error', 'message' => 'Unknown
channel "smurg"'),
), '1');
$phpunit->showall();
$phpunit->assertEquals(array (
), $fakelog->getLog(), 'log 1');
echo 'tests done';
?>
--EXPECT--
tests done