diff options
Diffstat (limited to 'tests/lang/operators/operator_lt_basic.phpt')
-rw-r--r-- | tests/lang/operators/operator_lt_basic.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
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"; |