From a102e2dbcf28fe39164d6f2ba3c78f6ca62f2a05 Mon Sep 17 00:00:00 2001 From: Amber Sistla Date: Thu, 17 Aug 2023 16:59:09 -0700 Subject: [PATCH] fix(tests): test_span_class_function fix. --- .../jit/function/test_span_class_function.php | 11 ++++++----- .../jit/tracing/test_span_class_function.php | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/tests/integration/jit/function/test_span_class_function.php b/tests/integration/jit/function/test_span_class_function.php index cd4b34d5b..5dbce791c 100644 --- a/tests/integration/jit/function/test_span_class_function.php +++ b/tests/integration/jit/function/test_span_class_function.php @@ -237,7 +237,7 @@ */ /*EXPECT -HelloHelloHelloOK +HelloHelloHellofunctionNamefunctionNamefunctionNamefunctionNamefunctionNameOK */ newrelic_add_custom_tracer('main'); @@ -253,10 +253,11 @@ function main() abstract class Classname{ protected function functionName() : void { - for($i = 0; $i < 500; ++$i){ - /* Spin wheels. */ - $x = 10 + 10; - } + echo 'functionName'; + for($i = 0; $i < 500; ++$i) { + /* Spin wheels. */ + $x = 10 + 10; + } } final public function __destruct(){ diff --git a/tests/integration/jit/tracing/test_span_class_function.php b/tests/integration/jit/tracing/test_span_class_function.php index f3ece5eb1..835d7649a 100644 --- a/tests/integration/jit/tracing/test_span_class_function.php +++ b/tests/integration/jit/tracing/test_span_class_function.php @@ -236,7 +236,7 @@ */ /*EXPECT -HelloHelloHelloOK +HelloHelloHellofunctionNamefunctionNamefunctionNamefunctionNamefunctionNameOK */ newrelic_add_custom_tracer('main'); @@ -252,12 +252,12 @@ function main() abstract class Classname{ protected function functionName() : void { - for($i = 0; $i < 500; ++$i){ - /* Spin wheels. */ - $x = 10 + 10; + echo 'functionName'; + for($i = 0; $i < 500; ++$i) { + /* Spin wheels. */ + $x = 10 + 10; + } } - } - final public function __destruct(){ }