aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-16 08:28:35 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-16 14:56:15 +0100
commit7cbd440e7a69eb836eb9d58800f1c535d41b83ab (patch)
treef34d4b565cb2892fa663696a2596693e6fe6a638 /tests/functions
parent4e3a42f59fa32fb1a3e14cff959b19576e5ba7cf (diff)
downloadforums-7cbd440e7a69eb836eb9d58800f1c535d41b83ab.tar
forums-7cbd440e7a69eb836eb9d58800f1c535d41b83ab.tar.gz
forums-7cbd440e7a69eb836eb9d58800f1c535d41b83ab.tar.bz2
forums-7cbd440e7a69eb836eb9d58800f1c535d41b83ab.tar.xz
forums-7cbd440e7a69eb836eb9d58800f1c535d41b83ab.zip
[ticket/11192] Mark negative byte numbers as unsupported.
PHPBB3-11192
Diffstat (limited to 'tests/functions')
-rw-r--r--tests/functions/get_formatted_filesize_test.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/functions/get_formatted_filesize_test.php b/tests/functions/get_formatted_filesize_test.php
index 88866f90ac..c4793e8073 100644
--- a/tests/functions/get_formatted_filesize_test.php
+++ b/tests/functions/get_formatted_filesize_test.php
@@ -30,18 +30,10 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
array(0, '0 BYTES'),
array(2, '2 BYTES'),
- array(-2, '-2 BYTES'),
array(1023, '1023 BYTES'),
array(1025, '1 KIB'),
- array(-1023, '-1023 BYTES'),
- array(-1025, '-1025 BYTES'),
-
array(1048575, '1024 KIB'),
-
- // large negatives
- array(-1073741824, '-1073741824 BYTES'),
- array(-1099511627776, '-1099511627776 BYTES'),
);
}
@@ -64,18 +56,10 @@ class phpbb_get_formatted_filesize_test extends phpbb_test_case
array('0', '0 BYTES'),
array('2', '2 BYTES'),
- array('-2', '-2 BYTES'),
array('1023', '1023 BYTES'),
array('1025', '1 KIB'),
- array('-1023', '-1023 BYTES'),
- array('-1025', '-1025 BYTES'),
-
array('1048575', '1024 KIB'),
-
- // large negatives
- array('-1073741824', '-1073741824 BYTES'),
- array('-1099511627776', '-1099511627776 BYTES'),
);
}