summaryrefslogtreecommitdiff
path: root/tests/lang/operators
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-14 17:45:48 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-14 19:45:12 +0200
commit782352c54ad69c517e3c32b0dd2c25d74842647a (patch)
tree220bdc1e814e9f44b3578d49b3f239a3fdefa1d0 /tests/lang/operators
parent604d4bdae5037e021c1f9d35f08cbeddd610d84c (diff)
downloadphp-git-782352c54ad69c517e3c32b0dd2c25d74842647a.tar.gz
Trim trailing whitespace in *.phpt
Diffstat (limited to 'tests/lang/operators')
-rw-r--r--tests/lang/operators/add_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/add_variationStr.phpt4
-rw-r--r--tests/lang/operators/bitwiseAnd_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/bitwiseAnd_variationStr.phpt4
-rw-r--r--tests/lang/operators/bitwiseNot_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/bitwiseNot_variationStr.phpt2
-rw-r--r--tests/lang/operators/bitwiseOr_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/bitwiseOr_variationStr.phpt4
-rw-r--r--tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/bitwiseShiftLeft_variationStr.phpt2
-rw-r--r--tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt4
-rw-r--r--tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/bitwiseShiftRight_variationStr.phpt2
-rw-r--r--tests/lang/operators/bitwiseXor_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/bitwiseXor_variationStr.phpt4
-rw-r--r--tests/lang/operators/divide_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/divide_variationStr.phpt4
-rw-r--r--tests/lang/operators/modulus_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/modulus_variationStr.phpt2
-rw-r--r--tests/lang/operators/multiply_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/multiply_variationStr.phpt4
-rw-r--r--tests/lang/operators/negate_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/negate_variationStr.phpt2
-rw-r--r--tests/lang/operators/operator_equals_basic.phpt12
-rw-r--r--tests/lang/operators/operator_equals_variation.phpt4
-rw-r--r--tests/lang/operators/operator_equals_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_gt_basic.phpt10
-rw-r--r--tests/lang/operators/operator_gt_or_equal_basic.phpt10
-rw-r--r--tests/lang/operators/operator_gt_or_equal_variation.phpt4
-rw-r--r--tests/lang/operators/operator_gt_or_equal_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_gt_variation.phpt4
-rw-r--r--tests/lang/operators/operator_gt_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_identical_basic.phpt14
-rw-r--r--tests/lang/operators/operator_identical_variation.phpt4
-rw-r--r--tests/lang/operators/operator_identical_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_lt_basic.phpt10
-rw-r--r--tests/lang/operators/operator_lt_or_equal_basic.phpt10
-rw-r--r--tests/lang/operators/operator_lt_or_equal_variation.phpt4
-rw-r--r--tests/lang/operators/operator_lt_or_equal_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_lt_variation.phpt4
-rw-r--r--tests/lang/operators/operator_lt_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_notequals_basic.phpt12
-rw-r--r--tests/lang/operators/operator_notequals_variation.phpt6
-rw-r--r--tests/lang/operators/operator_notequals_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_notidentical_basic.phpt14
-rw-r--r--tests/lang/operators/operator_notidentical_variation.phpt6
-rw-r--r--tests/lang/operators/operator_notidentical_variation_64bit.phpt4
-rw-r--r--tests/lang/operators/operator_spaceship_basic.phpt10
-rw-r--r--tests/lang/operators/postdec_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/postdec_variationStr.phpt2
-rw-r--r--tests/lang/operators/postinc_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/postinc_variationStr.phpt2
-rw-r--r--tests/lang/operators/predec_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/predec_variationStr.phpt2
-rw-r--r--tests/lang/operators/preinc_basiclong_64bit.phpt6
-rw-r--r--tests/lang/operators/subtract_basiclong_64bit.phpt10
-rw-r--r--tests/lang/operators/subtract_variationStr.phpt4
57 files changed, 171 insertions, 171 deletions
diff --git a/tests/lang/operators/add_basiclong_64bit.phpt b/tests/lang/operators/add_basiclong_64bit.phpt
index eb55d5f210..0168843494 100644
--- a/tests/lang/operators/add_basiclong_64bit.phpt
+++ b/tests/lang/operators/add_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal + $otherVal ---\n";
+ echo "--- testing: $longVal + $otherVal ---\n";
var_dump($longVal+$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal + $longVal ---\n";
+ echo "--- testing: $otherVal + $longVal ---\n";
var_dump($otherVal+$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/add_variationStr.phpt b/tests/lang/operators/add_variationStr.phpt
index 9bf11ec698..cc5834c578 100644
--- a/tests/lang/operators/add_variationStr.phpt
+++ b/tests/lang/operators/add_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' + '$otherVal' ---\n";
+ echo "--- testing: '$strVal' + '$otherVal' ---\n";
var_dump($strVal+$otherVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseAnd_basiclong_64bit.phpt b/tests/lang/operators/bitwiseAnd_basiclong_64bit.phpt
index 5dc322873a..30bdcf4c60 100644
--- a/tests/lang/operators/bitwiseAnd_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseAnd_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal & $otherVal ---\n";
+ echo "--- testing: $longVal & $otherVal ---\n";
var_dump($longVal&$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal & $longVal ---\n";
+ echo "--- testing: $otherVal & $longVal ---\n";
var_dump($otherVal&$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseAnd_variationStr.phpt b/tests/lang/operators/bitwiseAnd_variationStr.phpt
index 5b7cb10b12..50ddb9ddb5 100644
--- a/tests/lang/operators/bitwiseAnd_variationStr.phpt
+++ b/tests/lang/operators/bitwiseAnd_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' & '$otherVal' ---\n";
+ echo "--- testing: '$strVal' & '$otherVal' ---\n";
var_dump(bin2hex($strVal&$otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseNot_basiclong_64bit.phpt b/tests/lang/operators/bitwiseNot_basiclong_64bit.phpt
index 86df2d771d..5b8d7c9c48 100644
--- a/tests/lang/operators/bitwiseNot_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseNot_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(~$longVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseNot_variationStr.phpt b/tests/lang/operators/bitwiseNot_variationStr.phpt
index 98bca9e473..d0f8a75933 100644
--- a/tests/lang/operators/bitwiseNot_variationStr.phpt
+++ b/tests/lang/operators/bitwiseNot_variationStr.phpt
@@ -13,7 +13,7 @@ foreach ($strVals as $strVal) {
echo "--- testing: '$strVal' ---\n";
var_dump(bin2hex(~$strVal));
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseOr_basiclong_64bit.phpt b/tests/lang/operators/bitwiseOr_basiclong_64bit.phpt
index 50e35a1c28..dc4126cb0c 100644
--- a/tests/lang/operators/bitwiseOr_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseOr_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal | $otherVal ---\n";
+ echo "--- testing: $longVal | $otherVal ---\n";
var_dump($longVal|$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal | $longVal ---\n";
+ echo "--- testing: $otherVal | $longVal ---\n";
var_dump($otherVal|$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseOr_variationStr.phpt b/tests/lang/operators/bitwiseOr_variationStr.phpt
index 2d1d353788..a883c4687a 100644
--- a/tests/lang/operators/bitwiseOr_variationStr.phpt
+++ b/tests/lang/operators/bitwiseOr_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' | '$otherVal' ---\n";
+ echo "--- testing: '$strVal' | '$otherVal' ---\n";
var_dump(bin2hex($strVal|$otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt b/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt
index 99626da6f1..218abf9d7a 100644
--- a/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -43,7 +43,7 @@ foreach ($otherVals as $otherVal) {
}
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt b/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
index 7300eca02c..1f66dfce4c 100644
--- a/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
+++ b/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
@@ -20,7 +20,7 @@ foreach ($strVals as $strVal) {
}
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt b/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt
index ddfd2f7c6d..c36e22fef4 100644
--- a/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt
+++ b/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt
@@ -17,7 +17,7 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
echo "--- testing: '$strVal' << '$otherVal' ---\n";
- try {
+ try {
var_dump($strVal<<$otherVal);
} catch (ArithmeticError $e) {
echo "Exception: " . $e->getMessage() . "\n";
@@ -25,7 +25,7 @@ foreach ($strVals as $strVal) {
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt b/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt
index 65e7e826b8..7a08ed09da 100644
--- a/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -43,7 +43,7 @@ foreach ($otherVals as $otherVal) {
}
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseShiftRight_variationStr.phpt b/tests/lang/operators/bitwiseShiftRight_variationStr.phpt
index a4c425aab3..e3c9c8962d 100644
--- a/tests/lang/operators/bitwiseShiftRight_variationStr.phpt
+++ b/tests/lang/operators/bitwiseShiftRight_variationStr.phpt
@@ -21,7 +21,7 @@ foreach ($strVals as $strVal) {
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseXor_basiclong_64bit.phpt b/tests/lang/operators/bitwiseXor_basiclong_64bit.phpt
index 0bfd8089e6..1b63f38dee 100644
--- a/tests/lang/operators/bitwiseXor_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseXor_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal ^ $otherVal ---\n";
+ echo "--- testing: $longVal ^ $otherVal ---\n";
var_dump($longVal^$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal ^ $longVal ---\n";
+ echo "--- testing: $otherVal ^ $longVal ---\n";
var_dump($otherVal^$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/bitwiseXor_variationStr.phpt b/tests/lang/operators/bitwiseXor_variationStr.phpt
index 64d5eb75d8..dced933ee4 100644
--- a/tests/lang/operators/bitwiseXor_variationStr.phpt
+++ b/tests/lang/operators/bitwiseXor_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' ^ '$otherVal' ---\n";
+ echo "--- testing: '$strVal' ^ '$otherVal' ---\n";
var_dump(bin2hex($strVal^$otherVal));
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/divide_basiclong_64bit.phpt b/tests/lang/operators/divide_basiclong_64bit.phpt
index 0dd08f534f..4349ae0025 100644
--- a/tests/lang/operators/divide_basiclong_64bit.phpt
+++ b/tests/lang/operators/divide_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal / $otherVal ---\n";
+ echo "--- testing: $longVal / $otherVal ---\n";
var_dump($longVal/$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal / $longVal ---\n";
+ echo "--- testing: $otherVal / $longVal ---\n";
var_dump($otherVal/$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/divide_variationStr.phpt b/tests/lang/operators/divide_variationStr.phpt
index 88ff8f1840..f908642765 100644
--- a/tests/lang/operators/divide_variationStr.phpt
+++ b/tests/lang/operators/divide_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' / '$otherVal' ---\n";
+ echo "--- testing: '$strVal' / '$otherVal' ---\n";
var_dump($strVal/$otherVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/modulus_basiclong_64bit.phpt b/tests/lang/operators/modulus_basiclong_64bit.phpt
index 6806bd53a8..155649d203 100644
--- a/tests/lang/operators/modulus_basiclong_64bit.phpt
+++ b/tests/lang/operators/modulus_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -43,7 +43,7 @@ foreach ($otherVals as $otherVal) {
}
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/modulus_variationStr.phpt b/tests/lang/operators/modulus_variationStr.phpt
index 6441428e3e..21765ecb7c 100644
--- a/tests/lang/operators/modulus_variationStr.phpt
+++ b/tests/lang/operators/modulus_variationStr.phpt
@@ -21,7 +21,7 @@ foreach ($strVals as $strVal) {
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/multiply_basiclong_64bit.phpt b/tests/lang/operators/multiply_basiclong_64bit.phpt
index 31d9188a77..512c3fbc18 100644
--- a/tests/lang/operators/multiply_basiclong_64bit.phpt
+++ b/tests/lang/operators/multiply_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal * $otherVal ---\n";
+ echo "--- testing: $longVal * $otherVal ---\n";
var_dump($longVal*$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal * $longVal ---\n";
+ echo "--- testing: $otherVal * $longVal ---\n";
var_dump($otherVal*$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/multiply_variationStr.phpt b/tests/lang/operators/multiply_variationStr.phpt
index 01d7e05074..50735e2548 100644
--- a/tests/lang/operators/multiply_variationStr.phpt
+++ b/tests/lang/operators/multiply_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' * '$otherVal' ---\n";
+ echo "--- testing: '$strVal' * '$otherVal' ---\n";
var_dump($strVal*$otherVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/negate_basiclong_64bit.phpt b/tests/lang/operators/negate_basiclong_64bit.phpt
index 47b25e5397..bce8982126 100644
--- a/tests/lang/operators/negate_basiclong_64bit.phpt
+++ b/tests/lang/operators/negate_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(-$longVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/negate_variationStr.phpt b/tests/lang/operators/negate_variationStr.phpt
index ccff2fba2c..7956ef4a1c 100644
--- a/tests/lang/operators/negate_variationStr.phpt
+++ b/tests/lang/operators/negate_variationStr.phpt
@@ -13,7 +13,7 @@ foreach ($strVals as $strVal) {
echo "--- testing: '$strVal' ---\n";
var_dump(-$strVal);
}
-
+
?>
===DONE===
--EXPECTF--
diff --git a/tests/lang/operators/operator_equals_basic.phpt b/tests/lang/operators/operator_equals_basic.phpt
index 9de4ed1a2a..1f83a48180 100644
--- a/tests/lang/operators/operator_equals_basic.phpt
+++ b/tests/lang/operators/operator_equals_basic.phpt
@@ -22,20 +22,20 @@ $invalid_float2 = array("- 67345.76567", "-67,345.76567", -67345.76566, -6.73457
$toCompare = array(
- true, $valid_true, $valid_false,
+ true, $valid_true, $valid_false,
false, $valid_false, $valid_true,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest == $compareVal) {
// do nothing
@@ -45,19 +45,19 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if ($typeToTest == $compareVal) {
echo "FAILED: '$typeToTest' == '$compareVal'\n";
$failed = true;
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_equals_variation.phpt b/tests/lang/operators/operator_equals_variation.phpt
index d72253404b..ad561454ae 100644
--- a/tests/lang/operators/operator_equals_variation.phpt
+++ b/tests/lang/operators/operator_equals_variation.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidEqual); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_equals_variation_64bit.phpt b/tests/lang/operators/operator_equals_variation_64bit.phpt
index ada6c2d7ec..15d440978e 100644
--- a/tests/lang/operators/operator_equals_variation_64bit.phpt
+++ b/tests/lang/operators/operator_equals_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -57,7 +57,7 @@ for ($i = 0; $i < count($invalidEqual); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_gt_basic.phpt b/tests/lang/operators/operator_gt_basic.phpt
index db856c62e6..66c457f0b1 100644
--- a/tests/lang/operators/operator_gt_basic.phpt
+++ b/tests/lang/operators/operator_gt_basic.phpt
@@ -24,19 +24,19 @@ $toCompare = array(
// boolean test will result in both sides being converted to boolean so !0 = true and true is not > true for example
// also note that a string of "0" is converted to false but a string of "0.0" is converted to true
// false cannot be tested as 0 can never be > 0 or 1
- true, $valid_false, $valid_true,
+ true, $valid_false, $valid_true,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest > $compareVal) {
// do nothing
@@ -46,14 +46,14 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if ($typeToTest > $compareVal) {
echo "FAILED: '$typeToTest' > '$compareVal'\n";
$failed = true;
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
diff --git a/tests/lang/operators/operator_gt_or_equal_basic.phpt b/tests/lang/operators/operator_gt_or_equal_basic.phpt
index f1b1e01048..006c22baeb 100644
--- a/tests/lang/operators/operator_gt_or_equal_basic.phpt
+++ b/tests/lang/operators/operator_gt_or_equal_basic.phpt
@@ -22,19 +22,19 @@ $invalid_float2 = array(-67345.76564, -6.734576564E4);
$toCompare = array(
true, array_merge($valid_false, $valid_true), NULL,
- false, $valid_false, $valid_true,
+ false, $valid_false, $valid_true,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest >= $compareVal) {
// do nothing
@@ -44,7 +44,7 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
if ($invalid_compares != NULL) {
foreach($invalid_compares as $compareVal) {
if ($typeToTest >= $compareVal) {
@@ -53,7 +53,7 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
}
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
diff --git a/tests/lang/operators/operator_gt_or_equal_variation.phpt b/tests/lang/operators/operator_gt_or_equal_variation.phpt
index 2355ab4c45..1e3a338e73 100644
--- a/tests/lang/operators/operator_gt_or_equal_variation.phpt
+++ b/tests/lang/operators/operator_gt_or_equal_variation.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidGtOrEqual); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_gt_or_equal_variation_64bit.phpt b/tests/lang/operators/operator_gt_or_equal_variation_64bit.phpt
index 8a1ed35f10..d6245abbfc 100644
--- a/tests/lang/operators/operator_gt_or_equal_variation_64bit.phpt
+++ b/tests/lang/operators/operator_gt_or_equal_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidGtOrEqual); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_gt_variation.phpt b/tests/lang/operators/operator_gt_variation.phpt
index 937ebbbb63..4c56ec5e6a 100644
--- a/tests/lang/operators/operator_gt_variation.phpt
+++ b/tests/lang/operators/operator_gt_variation.phpt
@@ -2,7 +2,7 @@
Test > operator : max int 32bit range
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -50,7 +50,7 @@ for ($i = 0; $i < count($invalidGreaterThan); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_gt_variation_64bit.phpt b/tests/lang/operators/operator_gt_variation_64bit.phpt
index 15c6b88319..60a34c8986 100644
--- a/tests/lang/operators/operator_gt_variation_64bit.phpt
+++ b/tests/lang/operators/operator_gt_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -54,7 +54,7 @@ for ($i = 0; $i < count($invalidGreaterThan); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_identical_basic.phpt b/tests/lang/operators/operator_identical_basic.phpt
index e3a0fe272f..cddba995a6 100644
--- a/tests/lang/operators/operator_identical_basic.phpt
+++ b/tests/lang/operators/operator_identical_basic.phpt
@@ -15,27 +15,27 @@ $invalid_int2 = array("-67835", "-67835abc", " -67835", "-67835 ", -67835.000,
$float1 = 57385.45835;
$float2 = -67345.76567;
-$valid_float1 = array(57385.45835, 5.738545835e4);
+$valid_float1 = array(57385.45835, 5.738545835e4);
$valid_float2 = array(-67345.76567, -6.734576567E4);
$invalid_float1 = array("57385.45835", "57385.45835aaa", " 57385.45835", "57385. 45835", "57,385.45835", 57385.45834, 5.738545834e4);
$invalid_float2 = array("-67345.76567", "-67345.76567aaa", " -67345.76567", "- 67345.76567", "-67,345.76567", -67345.76566, -6.734576566E4);
$toCompare = array(
- true, array(true), array_merge($valid_true, $valid_false),
+ true, array(true), array_merge($valid_true, $valid_false),
false, array(false), array_merge($valid_true, $valid_false),
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest === $compareVal) {
// do nothing
@@ -45,19 +45,19 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if ($typeToTest === $compareVal) {
echo "FAILED: '$typeToTest' == '$compareVal'\n";
$failed = true;
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_identical_variation.phpt b/tests/lang/operators/operator_identical_variation.phpt
index a215fef0a4..8b8e1dc7ea 100644
--- a/tests/lang/operators/operator_identical_variation.phpt
+++ b/tests/lang/operators/operator_identical_variation.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidIdentical); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_identical_variation_64bit.phpt b/tests/lang/operators/operator_identical_variation_64bit.phpt
index 0c8d398daf..cd098699f2 100644
--- a/tests/lang/operators/operator_identical_variation_64bit.phpt
+++ b/tests/lang/operators/operator_identical_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -57,7 +57,7 @@ for ($i = 0; $i < count($invalidIdentical); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_lt_basic.phpt b/tests/lang/operators/operator_lt_basic.phpt
index 41f18ef9d2..4574fb7d1d 100644
--- a/tests/lang/operators/operator_lt_basic.phpt
+++ b/tests/lang/operators/operator_lt_basic.phpt
@@ -21,19 +21,19 @@ $invalid_float2 = array(-67345.76567, -6.734576567E4);
$toCompare = array(
- false, $valid_true, $valid_false,
+ false, $valid_true, $valid_false,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest < $compareVal) {
// do nothing
@@ -43,14 +43,14 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if ($typeToTest < $compareVal) {
echo "FAILED: '$typeToTest' < '$compareVal'\n";
$failed = true;
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
diff --git a/tests/lang/operators/operator_lt_or_equal_basic.phpt b/tests/lang/operators/operator_lt_or_equal_basic.phpt
index 85a86e1996..5439fd7d75 100644
--- a/tests/lang/operators/operator_lt_or_equal_basic.phpt
+++ b/tests/lang/operators/operator_lt_or_equal_basic.phpt
@@ -21,19 +21,19 @@ $invalid_float2 = array(-67345.76569, -6.734576569E4);
$toCompare = array(
true, $valid_true, $valid_false,
- false, array_merge($valid_false, $valid_true), NULL,
+ false, array_merge($valid_false, $valid_true), NULL,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest <= $compareVal) {
// do nothing
@@ -43,7 +43,7 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
if ($invalid_compares != NULL) {
foreach($invalid_compares as $compareVal) {
if ($typeToTest <= $compareVal) {
@@ -52,7 +52,7 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
}
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
diff --git a/tests/lang/operators/operator_lt_or_equal_variation.phpt b/tests/lang/operators/operator_lt_or_equal_variation.phpt
index 5724511a0e..a003138ceb 100644
--- a/tests/lang/operators/operator_lt_or_equal_variation.phpt
+++ b/tests/lang/operators/operator_lt_or_equal_variation.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidLtOrEqual); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_lt_or_equal_variation_64bit.phpt b/tests/lang/operators/operator_lt_or_equal_variation_64bit.phpt
index f3b16c1fc9..50afd9b3e5 100644
--- a/tests/lang/operators/operator_lt_or_equal_variation_64bit.phpt
+++ b/tests/lang/operators/operator_lt_or_equal_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidLtOrEqual); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_lt_variation.phpt b/tests/lang/operators/operator_lt_variation.phpt
index f210fe4657..18a6631665 100644
--- a/tests/lang/operators/operator_lt_variation.phpt
+++ b/tests/lang/operators/operator_lt_variation.phpt
@@ -2,7 +2,7 @@
Test < operator : max int 32bit range
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -48,7 +48,7 @@ for ($i = 0; $i < count($invalidLessThan); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_lt_variation_64bit.phpt b/tests/lang/operators/operator_lt_variation_64bit.phpt
index 3ee274aea0..663b840e61 100644
--- a/tests/lang/operators/operator_lt_variation_64bit.phpt
+++ b/tests/lang/operators/operator_lt_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -52,7 +52,7 @@ for ($i = 0; $i < count($invalidLessThan); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_notequals_basic.phpt b/tests/lang/operators/operator_notequals_basic.phpt
index cef0be6279..35bd83e445 100644
--- a/tests/lang/operators/operator_notequals_basic.phpt
+++ b/tests/lang/operators/operator_notequals_basic.phpt
@@ -22,20 +22,20 @@ $invalid_float2 = array("-67345.76567", "-67345.76567aaa", " -67345.76567", -6.
$toCompare = array(
- true, $valid_false, $valid_true,
+ true, $valid_false, $valid_true,
false, $valid_true, $valid_false,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest != $compareVal && $typeToTest <> $compareVal) {
// do nothing
@@ -45,19 +45,19 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if ($typeToTest != $compareVal || $typeToTest <> $compareVal) {
echo "FAILED: '$typeToTest' != '$compareVal'\n";
$failed = true;
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_notequals_variation.phpt b/tests/lang/operators/operator_notequals_variation.phpt
index 25bbfc5859..137888506f 100644
--- a/tests/lang/operators/operator_notequals_variation.phpt
+++ b/tests/lang/operators/operator_notequals_variation.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -37,7 +37,7 @@ for ($i = 0; $i < count($validNotEquals); $i +=2) {
else {
echo "FAILED: '$typeToTestVal' == '$compareVal'\n";
$failed = true;
- }
+ }
}
}
// test invalid values
@@ -55,7 +55,7 @@ for ($i = 0; $i < count($invalidNotEquals); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_notequals_variation_64bit.phpt b/tests/lang/operators/operator_notequals_variation_64bit.phpt
index 6fbc496fa5..ea06b49264 100644
--- a/tests/lang/operators/operator_notequals_variation_64bit.phpt
+++ b/tests/lang/operators/operator_notequals_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -57,7 +57,7 @@ for ($i = 0; $i < count($invalidNotEquals); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_notidentical_basic.phpt b/tests/lang/operators/operator_notidentical_basic.phpt
index 9f21ea4bca..d24c936119 100644
--- a/tests/lang/operators/operator_notidentical_basic.phpt
+++ b/tests/lang/operators/operator_notidentical_basic.phpt
@@ -17,25 +17,25 @@ $float1 = 57385.45835;
$float2 = -67345.76567;
$valid_float1 = array("57385.45835", "57385.45835aaa", " 57385.45835", "57385. 45835", "57,385.45835", 57385.45834, 5.738545834e4);
$valid_float2 = array("-67345.76567", "-67345.76567aaa", " -67345.76567", "- 67345.76567", "-67,345.76567", -67345.76566, -6.734576566E4);
-$invalid_float1 = array(57385.45835, 5.738545835e4);
+$invalid_float1 = array(57385.45835, 5.738545835e4);
$invalid_float2 = array(-67345.76567, -6.734576567E4);
$toCompare = array(
- true, array_merge($valid_true, $valid_false), array(true),
+ true, array_merge($valid_true, $valid_false), array(true),
false, array_merge($valid_true, $valid_false), array(false),
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if ($typeToTest !== $compareVal) {
// do nothing
@@ -45,19 +45,19 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if ($typeToTest !== $compareVal) {
echo "FAILED: '$typeToTest' !== '$compareVal'\n";
$failed = true;
}
}
-
+
}
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_notidentical_variation.phpt b/tests/lang/operators/operator_notidentical_variation.phpt
index a9fbcf60e1..bae03f85b7 100644
--- a/tests/lang/operators/operator_notidentical_variation.phpt
+++ b/tests/lang/operators/operator_notidentical_variation.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -36,7 +36,7 @@ for ($i = 0; $i < count($validNotIdentical); $i +=2) {
}
else {
echo "FAILED: '$typeToTestVal' === '$compareVal'\n";
- $failed = true;
+ $failed = true;
}
}
}
@@ -56,7 +56,7 @@ for ($i = 0; $i < count($invalidNotIdentical); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_notidentical_variation_64bit.phpt b/tests/lang/operators/operator_notidentical_variation_64bit.phpt
index aa5aab7a59..d24f8b6234 100644
--- a/tests/lang/operators/operator_notidentical_variation_64bit.phpt
+++ b/tests/lang/operators/operator_notidentical_variation_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -57,7 +57,7 @@ for ($i = 0; $i < count($invalidNotIdentical); $i +=2) {
if ($failed == false) {
echo "Test Passed\n";
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/operator_spaceship_basic.phpt b/tests/lang/operators/operator_spaceship_basic.phpt
index 81b0516757..13b80612dc 100644
--- a/tests/lang/operators/operator_spaceship_basic.phpt
+++ b/tests/lang/operators/operator_spaceship_basic.phpt
@@ -24,19 +24,19 @@ $toCompare = array(
// boolean test will result in both sides being converted to boolean so !0 = true and true is not > true for example
// also note that a string of "0" is converted to false but a string of "0.0" is converted to true
// false cannot be tested as 0 can never be > 0 or 1
- true, $valid_false, $valid_true,
+ true, $valid_false, $valid_true,
$int1, $valid_int1, $invalid_int1,
$int2, $valid_int2, $invalid_int2,
$float1, $valid_float1, $invalid_float1,
$float2, $valid_float2, $invalid_float2
);
-
+
$failed = false;
for ($i = 0; $i < count($toCompare); $i +=3) {
$typeToTest = $toCompare[$i];
$valid_compares = $toCompare[$i + 1];
$invalid_compares = $toCompare[$i + 2];
-
+
foreach($valid_compares as $compareVal) {
if (($typeToTest <=> $compareVal) === 1) {
// do nothing
@@ -60,7 +60,7 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
foreach($invalid_compares as $compareVal) {
if (($typeToTest <=> $compareVal) === 1) {
echo "FAILED: ('$typeToTest' <=> '$compareVal') === 1\n";
@@ -75,7 +75,7 @@ for ($i = 0; $i < count($toCompare); $i +=3) {
$failed = true;
}
}
-
+
if (($typeToTest <=> $typeToTest) === 0) {
// do nothing
}
diff --git a/tests/lang/operators/postdec_basiclong_64bit.phpt b/tests/lang/operators/postdec_basiclong_64bit.phpt
index f3e825ca3d..5d0af4d553 100644
--- a/tests/lang/operators/postdec_basiclong_64bit.phpt
+++ b/tests/lang/operators/postdec_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,7 +24,7 @@ foreach ($longVals as $longVal) {
$longVal--;
var_dump($longVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/postdec_variationStr.phpt b/tests/lang/operators/postdec_variationStr.phpt
index 0db326d27e..da88951e46 100644
--- a/tests/lang/operators/postdec_variationStr.phpt
+++ b/tests/lang/operators/postdec_variationStr.phpt
@@ -14,7 +14,7 @@ foreach ($strVals as $strVal) {
$strVal--;
var_dump($strVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/postinc_basiclong_64bit.phpt b/tests/lang/operators/postinc_basiclong_64bit.phpt
index 18e8bddedd..d1003e22a5 100644
--- a/tests/lang/operators/postinc_basiclong_64bit.phpt
+++ b/tests/lang/operators/postinc_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,7 +24,7 @@ foreach ($longVals as $longVal) {
$longVal++;
var_dump($longVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/postinc_variationStr.phpt b/tests/lang/operators/postinc_variationStr.phpt
index 35e19888e1..c83d598fb7 100644
--- a/tests/lang/operators/postinc_variationStr.phpt
+++ b/tests/lang/operators/postinc_variationStr.phpt
@@ -14,7 +14,7 @@ foreach ($strVals as $strVal) {
$strVal++;
var_dump($strVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/predec_basiclong_64bit.phpt b/tests/lang/operators/predec_basiclong_64bit.phpt
index b2b11709b3..1f460a06e0 100644
--- a/tests/lang/operators/predec_basiclong_64bit.phpt
+++ b/tests/lang/operators/predec_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(--$longVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/predec_variationStr.phpt b/tests/lang/operators/predec_variationStr.phpt
index 1d1fade74d..8fb1bffac8 100644
--- a/tests/lang/operators/predec_variationStr.phpt
+++ b/tests/lang/operators/predec_variationStr.phpt
@@ -13,7 +13,7 @@ foreach ($strVals as $strVal) {
echo "--- testing: '$strVal' ---\n";
var_dump(--$strVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/preinc_basiclong_64bit.phpt b/tests/lang/operators/preinc_basiclong_64bit.phpt
index e24cc283aa..40a03f9d7a 100644
--- a/tests/lang/operators/preinc_basiclong_64bit.phpt
+++ b/tests/lang/operators/preinc_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -23,7 +23,7 @@ foreach ($longVals as $longVal) {
echo "--- testing: $longVal ---\n";
var_dump(++$longVal);
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/subtract_basiclong_64bit.phpt b/tests/lang/operators/subtract_basiclong_64bit.phpt
index ca80e3f52d..0c403f343e 100644
--- a/tests/lang/operators/subtract_basiclong_64bit.phpt
+++ b/tests/lang/operators/subtract_basiclong_64bit.phpt
@@ -6,7 +6,7 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
-
+
define("MAX_64Bit", 9223372036854775807);
define("MAX_32Bit", 2147483647);
define("MIN_64Bit", -9223372036854775807 - 1);
@@ -14,7 +14,7 @@ define("MIN_32Bit", -2147483647 - 1);
$longVals = array(
MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
- MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
+ MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
@@ -24,18 +24,18 @@ error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
- echo "--- testing: $longVal - $otherVal ---\n";
+ echo "--- testing: $longVal - $otherVal ---\n";
var_dump($longVal-$otherVal);
}
}
foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
- echo "--- testing: $otherVal - $longVal ---\n";
+ echo "--- testing: $otherVal - $longVal ---\n";
var_dump($otherVal-$longVal);
}
}
-
+
?>
===DONE===
--EXPECT--
diff --git a/tests/lang/operators/subtract_variationStr.phpt b/tests/lang/operators/subtract_variationStr.phpt
index 51b5ed4dca..393b172fb1 100644
--- a/tests/lang/operators/subtract_variationStr.phpt
+++ b/tests/lang/operators/subtract_variationStr.phpt
@@ -12,12 +12,12 @@ error_reporting(E_ERROR);
foreach ($strVals as $strVal) {
foreach($strVals as $otherVal) {
- echo "--- testing: '$strVal' - '$otherVal' ---\n";
+ echo "--- testing: '$strVal' - '$otherVal' ---\n";
var_dump($strVal-$otherVal);
}
}
-
+
?>
===DONE===
--EXPECT--