cvs: pear-core /tests/PEAR_Config test_setRegistry.phpt

From: Date: Mon, 21 Feb 2005 01:18:12 +0000
Subject: cvs: pear-core /tests/PEAR_Config test_setRegistry.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29588@lists.php.net to get a copy of this message
cellog Sun Feb 20 20:18:12 2005 EDT Modified files: /pear-core/tests/PEAR_Config test_setRegistry.phpt Log: update test to reflect new Config/pear linking http://cvs.php.net/diff.php/pear-core/tests/PEAR_Config/test_setRegistry.phpt?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/PEAR_Config/test_setRegistry.phpt diff -u pear-core/tests/PEAR_Config/test_setRegistry.phpt:1.4 pear-core/tests/PEAR_Config/test_setRegistry.phpt:1.5 --- pear-core/tests/PEAR_Config/test_setRegistry.phpt:1.4 Sun Jan 2 00:40:14 2005 +++ pear-core/tests/PEAR_Config/test_setRegistry.phpt Sun Feb 20 20:18:12 2005 @@ -12,16 +12,18 @@ require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $config = new PEAR_Config($temp_path . DIRECTORY_SEPARATOR . 'nope', $temp_path . DIRECTORY_SEPARATOR . 'nope'); -$phpunit->assertFalse($config->getRegistry(), 'initial user'); +$phpunit->assertFalse($config->getRegistry('user'), 'initial user'); $phpunit->assertFalse($config->getRegistry('system'), 'initial system'); $reg = &new PEAR_Registry($temp_path); $config->setRegistry($reg, 'system'); -$phpunit->assertIsa('PEAR_Registry', $config->getRegistry('user'), 'after system user'); +$phpunit->assertFalse($config->getRegistry('user'), 'after system user'); +$phpunit->assertIsa('PEAR_Registry', $config->getRegistry(), 'after system blank'); $phpunit->assertIsa('PEAR_Registry', $config->getRegistry('system'), 'after system system'); $reg1 = &new PEAR_Registry($temp_path . DIRECTORY_SEPARATOR . 'php'); $config->setRegistry($reg1, 'user'); +$phpunit->assertIsa('PEAR_Registry', $config->getRegistry(), 'after user blank'); $phpunit->assertIsa('PEAR_Registry', $config->getRegistry('user'), 'after user user'); $phpunit->assertIsa('PEAR_Registry', $config->getRegistry('system'), 'after user system');

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