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

From: Date: Fri, 26 Nov 2004 21:22:28 +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-26549@lists.php.net to get a copy of this message
cellog Fri Nov 26 16:22:28 2004 EDT Modified files: /pear-core/tests/PEAR_Command_Config/config-set test.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.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Command_Config/config-set/test.phpt diff -u pear-core/tests/PEAR_Command_Config/config-set/test.phpt:1.3 pear-core/tests/PEAR_Command_Config/config-set/test.phpt:1.4 --- pear-core/tests/PEAR_Command_Config/config-set/test.phpt:1.3 Fri Nov 26 16:14:48 2004 +++ pear-core/tests/PEAR_Command_Config/config-set/test.phpt Fri Nov 26 16:22:28 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'), 'setup'); -$command->run('config-set', array(), array('php_dir', 'poo')); +$command->run('config-set', array(), array('php_dir', $temp_path . DIRECTORY_SEPARATOR . 'poo')); $phpunit->assertNoErrors('after'); $phpunit->assertEquals(array ( 0 => @@ -20,10 +20,10 @@ 'cmd' => 'config-set', ), ), $fakelog->getLog(), 'ui log'); -$phpunit->assertEquals('poo', $config->get('php_dir'), 'php_dir'); +$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'poo', $config->get('php_dir'), 'php_dir'); $phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'php', $config->get('php_dir', 'system'), 'setup system'); -$command->run('config-set', array(), array('php_dir', 'poo', 'system')); +$command->run('config-set', array(), array('php_dir', $temp_path . DIRECTORY_SEPARATOR . 'poo', 'system')); $phpunit->assertNoErrors('after'); $phpunit->assertEquals(array ( 0 => @@ -32,12 +32,12 @@ 'cmd' => 'config-set', ), ), $fakelog->getLog(), 'ui log'); -$phpunit->assertEquals('poo', $config->get('php_dir', 'system'), 'php_dir'); +$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'poo', $config->get('php_dir', 'system'), 'php_dir'); $configinfo = array('master_server' => $server, 'preferred_state' => 'stable', 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', - 'php_dir' => 'poo', + 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'poo', 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc',

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