| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 4 # MantisBT is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation, either version 2 of the License, or 7 # (at your option) any later version. 8 # 9 # MantisBT is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * @package MantisBT 19 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 20 * @link http://www.mantisbt.org 21 */ 22 /** 23 * MantisBT Unit Test 24 */ 25 /** 26 * test config_get and config_set 27 * 28 * run from command line using: php -q test_config_get_set.php 29 * inspect results manually 30 * Notes: 31 * data set from the test may need to be removed from the database manually 32 */ 33 require_once( 'test.php' ); 34 35 $t_config = 'main_menu_custom_options'; 36 $t_test = config_get( $t_config ); 37 print_r( $t_config); 38 print_r( $t_test ); 39 $t_test[0][1] = 20; 40 config_set( $t_config, $t_test ); 41 $t_test = config_get( $t_config ); 42 print_r( $t_test ); 43 44 $t_config = 'default_home_page'; 45 $t_test = config_get( $t_config ); 46 print_r( $t_config); 47 print_r( $t_test ); 48 $t_test .= '?test'; 49 config_set( $t_config, $t_test ); 50 $t_test = config_get( $t_config ); 51 print_r( $t_test ); 52 53 $g_test_config = array(); 54 $t_config = 'test_config'; 55 $t_test = config_get( $t_config ); 56 print_r( $t_config); 57 print_r( $t_test ); 58 echo " ".(isset($t_test[0])?"set":"not set")." ".count($t_test)." "; 59 $t_test[0] = 20; 60 config_set( $t_config, $t_test ); 61 $t_test = config_get( $t_config ); 62 print_r( $t_test ); 63 echo " ".(isset($t_test[0])?"set":"not set")." ".count($t_test)." ";
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |