Skip to content

Commit d74562e

Browse files
committed
skip tests for anonymous class's methods instrumentation in PHPs < 8.0
This is not supported for PHPs < 7.4
1 parent ac8497c commit d74562e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/lang/trampoline/test_trampoline_02.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
Test that trampoline functions not blow up.
99
*/
1010

11+
/*SKIPIF
12+
<?php
13+
if (version_compare(PHP_VERSION, '8.0', '<')) {
14+
die("skip: custom instrumenting methods of anonymous classes is not available for PHP versions < 8.0");
15+
}
16+
*/
17+
1118
/*INI
1219
newrelic.code_level_metrics.enabled = true
1320
*/

0 commit comments

Comments
 (0)