1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[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
This commit is contained in:
Joas Schilling
2010-09-16 13:04:12 +02:00
parent 11e3804f97
commit 737849bc23
4 changed files with 159 additions and 10 deletions

View File

@@ -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 = '';