diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2010-09-16 13:04:12 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2011-02-01 13:38:44 +0100 |
commit | 737849bc23dc8081a82f00c78247e824b6a42daf (patch) | |
tree | b703716ca4e1051a8db95e95fffe46163badda21 /tests/functions_acp/validate_range.php | |
parent | 11e3804f97fc0ac5317d8e211c117c6572699976 (diff) | |
download | forums-737849bc23dc8081a82f00c78247e824b6a42daf.tar forums-737849bc23dc8081a82f00c78247e824b6a42daf.tar.gz forums-737849bc23dc8081a82f00c78247e824b6a42daf.tar.bz2 forums-737849bc23dc8081a82f00c78247e824b6a42daf.tar.xz forums-737849bc23dc8081a82f00c78247e824b6a42daf.zip |
[ticket/9823] Unit tests for validate_config_vars.
Fix some documentations and use the $max-var instead of the magic-number
in validate_config_vars.
PHPBB3-9823
Diffstat (limited to 'tests/functions_acp/validate_range.php')
-rw-r--r-- | tests/functions_acp/validate_range.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/functions_acp/validate_range.php b/tests/functions_acp/validate_range.php index fc2eaf1a60..253ef8d266 100644 --- a/tests/functions_acp/validate_range.php +++ b/tests/functions_acp/validate_range.php @@ -13,14 +13,9 @@ require_once '../phpBB/includes/functions_acp.php'; class phpbb_functions_acp_validate_range_test extends phpbb_test_case { -/* 'BOOL' => array('php_type' => 'int', 'min' => 0, 'max' => 1), - 'USINT' => array('php_type' => 'int', 'min' => 0, 'max' => 65535), - 'UINT' => array('php_type' => 'int', 'min' => 0, 'max' => (int) 0x7fffffff), - 'INT' => array('php_type' => 'int', 'min' => (int) 0x80000000, 'max' => (int) 0x7fffffff), - 'TINT' => array('php_type' => 'int', 'min' => -128, 'max' => 127), - - 'VCHAR' => array('php_type' => 'string', 'min' => 0, 'max' => 255), -*/ + /** + * Helper function which returns a string in a given length. + */ static public function return_string($length) { $string = ''; |