cvs: pear-core /tests/PEAR_Command_Config/config-set test.phpt

From: Date: Fri, 26 Nov 2004 20:36:02 +0000
Subject: cvs: pear-core /tests/PEAR_Command_Config/config-set test.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-26543@lists.php.net to get a copy of this message
cellog Fri Nov 26 15:36:02 2004 EDT Added files: /pear-core/tests/PEAR_Command_Config/config-set test.phpt Log: new test http://cvs.php.net/co.php/pear-core/tests/PEAR_Command_Config/config-set/test.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_Command_Config/config-set/test.phpt +++ pear-core/tests/PEAR_Command_Config/config-set/test.phpt --TEST-- config-set command --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'; $phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'php', $config->get('php_dir'), 'setup'); $command->run('config-set', array(), array('php_dir', 'poo')); $phpunit->assertNoErrors('after'); $phpunit->assertEquals(array ( 0 => array ( 'info' => 'config-set succeeded', 'cmd' => 'config-set', ), ), $fakelog->getLog(), 'ui log'); $phpunit->assertEquals('poo', $config->get('php_dir'), 'php_dir'); $phpunit->assertEquals(null, $config->get('php_dir', 'system'), 'setup system'); $command->run('config-set', array(), array('php_dir', 'poo', 'system')); $phpunit->assertNoErrors('after'); $phpunit->assertEquals(array ( 0 => array ( 'info' => 'config-set succeeded', 'cmd' => 'config-set', ), ), $fakelog->getLog(), 'ui log'); $phpunit->assertEquals('poo', $config->get('php_dir', 'system'), 'php_dir'); echo 'tests done'; ?> --EXPECT-- tests done

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