cvs: pear-core /tests/PEAR_Command_Config/config-set test_setchannelval_defaultch.phpt
| From: | Greg Beaver | Date: | Fri, 26 Nov 2004 21:23:48 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Config/config-set test_setchannelval_defaultch.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-26551@lists.php.net to get a copy of this message | ||
cellog Fri Nov 26 16:23:48 2004 EDT
Modified files:
/pear-core/tests/PEAR_Command_Config/config-set
test_setchannelval_defaultch.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_defaultch.phpt?r1=1.1&r2=1.2&ty=u
Index: pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval_defaultch.phpt
diff -u pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval_defaultch.phpt:1.1
pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval_defaultch.phpt:1.2
--- pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval_defaultch.phpt:1.1 Fri Nov 26
16:10:32 2004
+++ pear-core/tests/PEAR_Command_Config/config-set/test_setchannelval_defaultch.phpt Fri Nov 26
16:23:48 2004
@@ -12,7 +12,7 @@
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$config->set('default_channel', '__uri');
$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'php',
$config->get('php_dir', 'user', '__uri'), 'setup
default_ch');
-$command->run('config-set', array(), array('php_dir', 'poo',
'user'));
+$command->run('config-set', array(), array('php_dir', $temp_path .
DIRECTORY_SEPARATOR . 'poo', 'user'));
$phpunit->assertNoErrors('after user default_ch');
$phpunit->assertEquals(array (
0 =>
@@ -21,9 +21,9 @@
'cmd' => 'config-set',
),
), $fakelog->getLog(), 'ui log user default_ch');
-$phpunit->assertEquals('poo', $config->get('php_dir', 'user',
'__uri'), 'php_dir user default_ch');
+$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'poo',
$config->get('php_dir', 'user', '__uri'), 'php_dir user
default_ch');
$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'php',
$config->get('php_dir', 'system', '__uri'), 'setup system
default_ch');
-$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,7 +32,7 @@
'cmd' => 'config-set',
),
), $fakelog->getLog(), 'ui log system default_ch');
-$phpunit->assertEquals('poo', $config->get('php_dir', 'system',
'__uri'), 'php_dir system default_ch');
+$phpunit->assertEquals($temp_path . DIRECTORY_SEPARATOR . 'poo',
$config->get('php_dir', 'system', '__uri'), 'php_dir system
default_ch');
$configinfo = array('master_server' => $server,
'preferred_state' => 'stable',
'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache',
@@ -42,7 +42,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')),
'default_channel' => '__uri');
$info = explode("\n", implode('', file($temp_path . DIRECTORY_SEPARATOR .
'pear.ini')));