From 737849bc23dc8081a82f00c78247e824b6a42daf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 16 Sep 2010 13:04:12 +0200 Subject: [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 --- tests/functions_acp/validate_range.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests/functions_acp/validate_range.php') 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 = ''; -- cgit v1.2.1