We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9aa196 commit 9d29465Copy full SHA for 9d29465
tests/basic/ini_parse_quantity_basic.phpt
@@ -0,0 +1,29 @@
1
+--TEST--
2
+ini_parse_quantity() function - basic test for ini_parse_quantity()
3
+--FILE--
4
+<?php
5
+foreach (array(
6
+ '-1',
7
+ '0',
8
+ '1',
9
+ '1b',
10
+ '1k',
11
+ '1m',
12
+ '1g',
13
+ '1gb',
14
+ '14.2mb',
15
+ 'boat'
16
+) as $input) {
17
+ echo ini_parse_quantity( $input ) . PHP_EOL;
18
+}
19
+?>
20
+--EXPECT--
21
+0
22
23
+1
24
25
+1024
26
+1048576
27
+1073741824
28
+14
29
0 commit comments