cvs: pear-core /tests/PEAR_Config test_setget.phpt
| From: | Greg Beaver | Date: | Fri, 26 Nov 2004 20:33:46 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Config test_setget.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-26541@lists.php.net to get a copy of this message | ||
cellog Fri Nov 26 15:33:46 2004 EDT
Modified files:
/pear-core/tests/PEAR_Config test_setget.phpt
Log:
add test to make sure the layer exists
http://cvs.php.net/diff.php/pear-core/tests/PEAR_Config/test_setget.phpt?r1=1.1&r2=1.2&ty=u
Index: pear-core/tests/PEAR_Config/test_setget.phpt
diff -u pear-core/tests/PEAR_Config/test_setget.phpt:1.1
pear-core/tests/PEAR_Config/test_setget.phpt:1.2
--- pear-core/tests/PEAR_Config/test_setget.phpt:1.1 Tue Nov 23 02:01:05 2004
+++ pear-core/tests/PEAR_Config/test_setget.phpt Fri Nov 26 15:33:46 2004
@@ -14,6 +14,7 @@
// failures
$phpunit->assertFalse($config->set('__channels', 'oops'),
'__channels');
$phpunit->assertFalse($config->set('###', 'oops'), '###');
+$phpunit->assertFalse($config->set('php_dir', 'hi', 'gronk'),
'gronk layer');
// successes
$phpunit->assertTrue($config->set('data_dir', 'hi'),
'data_dir=hi');
$phpunit->assertEquals('hi', $config->get('data_dir', 'user',
'pear.php.net'),