Skip to content

Commit

Permalink
fix(tests): test_span_class_function fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
zsistla committed Aug 17, 2023
1 parent 71d511f commit a102e2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions tests/integration/jit/function/test_span_class_function.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
*/

/*EXPECT
HelloHelloHelloOK
HelloHelloHellofunctionNamefunctionNamefunctionNamefunctionNamefunctionNameOK
*/

newrelic_add_custom_tracer('main');
Expand All @@ -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(){
Expand Down
12 changes: 6 additions & 6 deletions tests/integration/jit/tracing/test_span_class_function.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
*/

/*EXPECT
HelloHelloHelloOK
HelloHelloHellofunctionNamefunctionNamefunctionNamefunctionNamefunctionNameOK
*/

newrelic_add_custom_tracer('main');
Expand All @@ -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(){

}
Expand Down

0 comments on commit a102e2d

Please sign in to comment.