summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/var_export_basic3.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /ext/standard/tests/general_functions/var_export_basic3.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz
Reindent phpt files
Diffstat (limited to 'ext/standard/tests/general_functions/var_export_basic3.phpt')
-rw-r--r--ext/standard/tests/general_functions/var_export_basic3.phpt54
1 files changed, 27 insertions, 27 deletions
diff --git a/ext/standard/tests/general_functions/var_export_basic3.phpt b/ext/standard/tests/general_functions/var_export_basic3.phpt
index 38618faea9..92d5bbbe76 100644
--- a/ext/standard/tests/general_functions/var_export_basic3.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic3.phpt
@@ -13,37 +13,37 @@ serialize_precision=17
echo "*** Testing var_export() with valid float values ***\n";
// different valid float values
$valid_floats = array(
- "-2147483649" => (float)-2147483649, // float value
- "2147483648" => (float)2147483648, // float value
- "-0x80000001" => (float)-0x80000001, // float value, beyond max negative int
- "0x800000001" => (float)0x800000001, // float value, beyond max positive int
- "020000000001" => (float)020000000001, // float value, beyond max positive int
- "-020000000001" => (float)-020000000001, // float value, beyond max negative int
- "0.0" => 0.0,
- "-0.1" => -0.1,
- "10.0000000000000000005" => 10.0000000000000000005,
- "10.5e+5" => 10.5e+5,
- "1e5" => 1e5,
- "1e-5" => 1e-5,
- "1e+5" => 1e+5,
- "1E5" => 1E5,
- "1E+5" => 1E+5,
- "1E-5" => 1E-5,
- ".5e+7" => .5e+7,
- ".6e-19" => .6e-19,
- ".05E+44" => .05E+44,
- ".0034E-30" => .0034E-30
+ "-2147483649" => (float)-2147483649, // float value
+ "2147483648" => (float)2147483648, // float value
+ "-0x80000001" => (float)-0x80000001, // float value, beyond max negative int
+ "0x800000001" => (float)0x800000001, // float value, beyond max positive int
+ "020000000001" => (float)020000000001, // float value, beyond max positive int
+ "-020000000001" => (float)-020000000001, // float value, beyond max negative int
+ "0.0" => 0.0,
+ "-0.1" => -0.1,
+ "10.0000000000000000005" => 10.0000000000000000005,
+ "10.5e+5" => 10.5e+5,
+ "1e5" => 1e5,
+ "1e-5" => 1e-5,
+ "1e+5" => 1e+5,
+ "1E5" => 1E5,
+ "1E+5" => 1E+5,
+ "1E-5" => 1E-5,
+ ".5e+7" => .5e+7,
+ ".6e-19" => .6e-19,
+ ".05E+44" => .05E+44,
+ ".0034E-30" => .0034E-30
);
/* Loop to check for above float values with var_export() */
echo "\n*** Output for float values ***\n";
foreach($valid_floats as $key => $float_value) {
- echo "\n-- Iteration: $key --\n";
- var_export( $float_value );
- echo "\n";
- var_export( $float_value, FALSE);
- echo "\n";
- var_dump( var_export( $float_value, TRUE) );
- echo "\n";
+ echo "\n-- Iteration: $key --\n";
+ var_export( $float_value );
+ echo "\n";
+ var_export( $float_value, FALSE);
+ echo "\n";
+ var_dump( var_export( $float_value, TRUE) );
+ echo "\n";
}
?>