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

From: Date: Fri, 26 Nov 2004 21:23:13 +0000
Subject: cvs: pear-core /tests/PEAR_Command_Config/config-set test_setchannelval.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-26550@lists.php.net to get a copy of this message
cellog Fri Nov 26 16:23:13 2004 EDT Modified files: /pear-core/tests/PEAR_Command_Config/config-set test_setchannelval.phpt Log: test creates the dir, so use one that will be deleted http://cvs.php.net/diff.php/pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval.phpt?r1=1.1&r2=1.2&ty=u Index: pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval.phpt diff -u pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval.phpt:1.1 pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval.phpt:1.2 --- pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval.phpt:1.1 Fri Nov 26 16:10:32 2004 +++ pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval.phpt Fri Nov 26 16:23:13 2004 @@ -11,7 +11,7 @@ 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'), $config->get('php_dir', 'user', '__uri'), 'setup'); -$command->run('config-set', array('channel' => '__uri'), array('php_dir', 'poo')); +$command->run('config-set', array('channel' => '__uri'), array('php_dir', $temp_path . DIRECTORY_SEPARATOR . 'poo')); $phpunit->assertNoErrors('after opt user'); $phpunit->assertEquals(array ( 0 => @@ -20,9 +20,9 @@ 'cmd' => 'config-set', ), ), $fakelog->getLog(), 'ui log, opt user'); -$phpunit->assertEquals('poo', $config->get('php_dir', 'user', '__uri'), 'php_dir opt system'); +$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'poo', $config->get('php_dir', 'user', '__uri'), 'php_dir opt system'); $phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'php', $config->get('php_dir', 'system', '__uri'), 'setup opt system'); -$command->run('config-set', array('channel' => '__uri'), array('php_dir', 'poo', 'system')); +$command->run('config-set', array('channel' => '__uri'), array('php_dir', $temp_path . DIRECTORY_SEPARATOR . 'poo', 'system')); $phpunit->assertNoErrors('after'); $phpunit->assertEquals(array ( 0 => @@ -31,7 +31,7 @@ 'cmd' => 'config-set', ), ), $fakelog->getLog(), 'ui log opt system'); -$phpunit->assertEquals('poo', $config->get('php_dir', 'system', '__uri'), 'php_dir system opt'); +$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'poo', $config->get('php_dir', 'system', '__uri'), 'php_dir system opt'); $configinfo = array('master_server' => $server, 'preferred_state' => 'stable', 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', @@ -41,7 +41,7 @@ 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin', - '__channels' => array('__uri' => array('php_dir' => 'poo'))); + '__channels' => array('__uri' => array('php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'poo'))); $info = explode("\n", implode('', file($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'))); $info = unserialize($info[1]);

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