diff options
Diffstat (limited to 'tests/lang/operators/bitwiseXor_variationStr.phpt')
-rw-r--r-- | tests/lang/operators/bitwiseXor_variationStr.phpt | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/lang/operators/bitwiseXor_variationStr.phpt b/tests/lang/operators/bitwiseXor_variationStr.phpt index 7dda65910a..64d5eb75d8 100644 --- a/tests/lang/operators/bitwiseXor_variationStr.phpt +++ b/tests/lang/operators/bitwiseXor_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(bin2hex($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(bin2hex($strVal^$otherVal)); + } +} + + +?> +===DONE=== +--EXPECT-- --- testing: '0' ^ '0' --- string(2) "00" --- testing: '0' ^ '65' --- @@ -412,5 +412,5 @@ string(8) "50071d58" --- testing: 'a5.9' ^ '3.4a' --- string(8) "521b1a58" --- testing: 'a5.9' ^ 'a5.9' --- -string(8) "00000000"
-===DONE===
+string(8) "00000000" +===DONE=== |