diff options
Diffstat (limited to 'tests/lang/operators/predec_variationStr.phpt')
-rw-r--r-- | tests/lang/operators/predec_variationStr.phpt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/lang/operators/predec_variationStr.phpt b/tests/lang/operators/predec_variationStr.phpt index c7fb5744a0..1d1fade74d 100644 --- a/tests/lang/operators/predec_variationStr.phpt +++ b/tests/lang/operators/predec_variationStr.phpt @@ -1,22 +1,22 @@ ---TEST--
-Test --N operator : various numbers as strings
---FILE--
-<?php
-
-$strVals = array(
- "0","65","-44", "1.2", "-7.7", "abc", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a",
- "a5.9"
-);
-
-
-foreach ($strVals as $strVal) {
- echo "--- testing: '$strVal' ---\n";
- var_dump(--$strVal);
-}
-
-?>
-===DONE===
---EXPECT--
+--TEST-- +Test --N operator : various numbers as strings +--FILE-- +<?php + +$strVals = array( + "0","65","-44", "1.2", "-7.7", "abc", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a", + "a5.9" +); + + +foreach ($strVals as $strVal) { + echo "--- testing: '$strVal' ---\n"; + var_dump(--$strVal); +} + +?> +===DONE=== +--EXPECT-- --- testing: '0' --- int(-1) --- testing: '65' --- @@ -44,5 +44,5 @@ string(7) "123abc " --- testing: '3.4a' --- string(4) "3.4a" --- testing: 'a5.9' --- -string(4) "a5.9"
-===DONE===
+string(4) "a5.9" +===DONE=== |