cvs: pear-core /tests/PEAR_Command_Config/config-get test_fail.phpt

From: Date: Fri, 26 Nov 2004 21:41:30 +0000
Subject: cvs: pear-core /tests/PEAR_Command_Config/config-get test_fail.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-26554@lists.php.net to get a copy of this message
cellog Fri Nov 26 16:41:30 2004 EDT Added files: /pear-core/tests/PEAR_Command_Config/config-get test_fail.phpt Log: new test http://cvs.php.net/co.php/pear-core/tests/PEAR_Command_Config/config-get/test_fail.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_Command_Config/config-get/test_fail.phpt +++ pear-core/tests/PEAR_Command_Config/config-get/test_fail.phpt --TEST-- config-get command 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('config-get', array(), array()); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'config-get expects 1 or 2 parameters'), ), 'no params'); $e = $command->run('config-get', array(), array('default_channel', 'user', 'hoo')); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'config-get expects 1 or 2 parameters'), ), '1 params'); $e = $command->run('config-get', array(), array('default_channel', 'gronk')); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'config-get: only the layers: "user" or "system" are supported'), ), 'unknown layer'); $e = $command->run('config-get', array('channel' => 'gronk'), array('php_dir')); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'Channel "gronk" does not exist'), ), 'unknown channel as option'); echo 'tests done'; ?> --EXPECT-- tests done

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