1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/php82-pecl-xhprof/fix-test.patch
2022-06-10 10:23:03 +00:00

29 lines
956 B
Diff

Patch-Source: https://github.com/longxinH/xhprof/pull/66
diff --git a/extension/tests/xhprof_005.phpt b/extension/tests/xhprof_005.phpt
index 5188257..9c2429a 100644
--- a/tests/xhprof_005.phpt
+++ b/tests/xhprof_005.phpt
@@ -49,7 +49,7 @@ $output = xhprof_disable();
function verify($expected, $actual, $description) {
- echo "Verifying ${description}...\n";
+ echo "Verifying {$description}...\n";
// 25% tolerance
$range_low = ($expected * 0.75);
@@ -57,10 +57,10 @@ function verify($expected, $actual, $description) {
if (($actual < $range_low) ||
($actual > $range_high)) {
- echo "Failed ${description}. Expected: ${expected} microsecs. ".
- "Actual: ${actual} microsecs.\n";
+ echo "Failed {$description}. Expected: {$expected} microsecs. ".
+ "Actual: {$actual} microsecs.\n";
} else {
- echo "OK: ${description}\n";
+ echo "OK: {$description}\n";
}
echo "-------------\n";
}