summaryrefslogtreecommitdiff
path: root/tests/func/010.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/func/010.phpt')
-rw-r--r--tests/func/010.phpt30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/func/010.phpt b/tests/func/010.phpt
index 4c28dea1b7..8b21df31ea 100644
--- a/tests/func/010.phpt
+++ b/tests/func/010.phpt
@@ -14,15 +14,15 @@ $limit = $boundary+42;
function test($a,$b)
{
- var_dump($a === $b);
- test2($a,$b);
+ var_dump($a === $b);
+ test2($a,$b);
}
function test2($a, $b)
{
- if ($a !== $b) {
- var_dump("something went wrong: $a !== $b");
- }
+ if ($a !== $b) {
+ var_dump("something went wrong: $a !== $b");
+ }
}
@@ -30,25 +30,25 @@ function test2($a, $b)
$str = "<?php\nfunction x(";
for($i=0; $i < $limit; ++$i) {
- $str .= '$v'.dechex($i).($i===($limit-1) ? '' : ',');
+ $str .= '$v'.dechex($i).($i===($limit-1) ? '' : ',');
}
$str .= ') {
- test($v42, \'42\');
- test(\'4000\', $v4000);
- test2($v300, \'300\');
- test($v0, \'0\'); // first
- test($v'.dechex($limit-1).", '".dechex($limit-1).'\'); // last
- test($v'.dechex($boundary).", '".dechex($boundary).'\'); //boundary
- test($v'.dechex($boundary+1).", '".dechex($boundary+1).'\'); //boundary+1
- test($v'.dechex($boundary-1).", '".dechex($boundary-1).'\'); //boundary-1
+ test($v42, \'42\');
+ test(\'4000\', $v4000);
+ test2($v300, \'300\');
+ test($v0, \'0\'); // first
+ test($v'.dechex($limit-1).", '".dechex($limit-1).'\'); // last
+ test($v'.dechex($boundary).", '".dechex($boundary).'\'); //boundary
+ test($v'.dechex($boundary+1).", '".dechex($boundary+1).'\'); //boundary+1
+ test($v'.dechex($boundary-1).", '".dechex($boundary-1).'\'); //boundary-1
}';
// generate the function call
$str .= "\n\nx(";
for($i=0; $i< $limit; ++$i) {
- $str .= "'".dechex($i)."'".($i===($limit-1) ? '' : ',');
+ $str .= "'".dechex($i)."'".($i===($limit-1) ? '' : ',');
}
$str .= ");\n";