diff options
Diffstat (limited to 'tests/lang/operators/divide_variationStr.phpt')
-rw-r--r-- | tests/lang/operators/divide_variationStr.phpt | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/lang/operators/divide_variationStr.phpt b/tests/lang/operators/divide_variationStr.phpt index f54013fcec..88ff8f1840 100644 --- a/tests/lang/operators/divide_variationStr.phpt +++ b/tests/lang/operators/divide_variationStr.phpt @@ -1,26 +1,26 @@ ---TEST--
-Test / 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"
-);
-
-error_reporting(E_ERROR);
-
-foreach ($strVals as $strVal) {
- foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' / '$otherVal' ---\n";
- var_dump($strVal/$otherVal);
- }
-}
-
-
-?>
-===DONE===
---EXPECT--
+--TEST-- +Test / 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" +); + +error_reporting(E_ERROR); + +foreach ($strVals as $strVal) { + foreach($strVals as $otherVal) { + echo "--- testing: '$strVal' / '$otherVal' ---\n"; + var_dump($strVal/$otherVal); + } +} + + +?> +===DONE=== +--EXPECT-- --- testing: '0' / '0' --- float(NAN) --- testing: '0' / '65' --- @@ -412,5 +412,5 @@ int(0) --- testing: 'a5.9' / '3.4a' --- float(0) --- testing: 'a5.9' / 'a5.9' --- -float(NAN)
-===DONE===
+float(NAN) +===DONE=== |