summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/intval.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/intval.phpt')
-rw-r--r--ext/standard/tests/general_functions/intval.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/general_functions/intval.phpt b/ext/standard/tests/general_functions/intval.phpt
index a22b747e55..322b407aa4 100644
--- a/ext/standard/tests/general_functions/intval.phpt
+++ b/ext/standard/tests/general_functions/intval.phpt
@@ -11,13 +11,13 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
*/
echo "*** Testing intval() with valid integer values ***\n";
-// different valid integer vlaues
+// different valid integer vlaues
$valid_ints = array(
'0',
'1',
'-1',
'-2147483648', // max negative integer value
- '-2147483647',
+ '-2147483647',
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -33,7 +33,7 @@ $valid_ints = array(
017777777777, // max positive integer as octal
);
-/* loop to check that intval() recognizes different
+/* loop to check that intval() recognizes different
integer values, expected output:integer value in decimal notation for valid integer */
echo "\n***Output with default base value ie 10 ***\n";
@@ -47,7 +47,7 @@ foreach ($valid_ints as $value ) {
var_dump( intval($value, 10) );
}
-
+
echo "\n***Output with base value of 16 ***\n";
foreach ($valid_ints as $value ) {
var_dump( intval($value, 16) );
@@ -140,7 +140,7 @@ $not_int_types = array (
);
-/* loop through the $not_int_types to see working of
+/* loop through the $not_int_types to see working of
intval() on non integer types, expected output: integer value in decimal notation for valid integers */
foreach ($not_int_types as $type ) {
var_dump( intval($type) );
@@ -150,9 +150,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( intval() );
-//arguments more than expected
+//arguments more than expected
var_dump( intval(TRUE, FALSE, TRUE) );
-
+
echo "\n--- Done ---\n";