Skip to content

Commit ea34ac0

Browse files
Update agent/tests/test_lib_aws_sdk_php.c
Co-authored-by: bduranleau-nr <[email protected]>
1 parent efd8799 commit ea34ac0

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

agent/tests/test_lib_aws_sdk_php.c

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -555,27 +555,28 @@ static void test_nr_lib_aws_sdk_php_handle_version(void) {
555555

556556
#if ZEND_MODULE_API_NO >= ZEND_8_1_X_API_NO
557557
static void setup_inherited_classes() {
558-
tlib_php_request_eval(
559-
"class endpoint_class{"
560-
"public ?string $host;"
561-
"public ?int $port;"
562-
"function __construct(?int $port = null, ?string $host = null) {"
563-
"$this->host = $host;"
564-
"$this->port = $port;"
565-
"}"
558+
// clang-format off
559+
const char* classes =
560+
"class endpoint_class {"
561+
"public ?string $host;"
562+
"public ?int $port;"
563+
"function __construct(?int $port = null, ?string $host = null) {"
564+
"$this->host = $host;"
565+
"$this->port = $port;"
566+
"}"
566567
"}"
567568
"class base_class {"
568-
"private ?string $region;"
569-
"private ?endpoint_class $endpoint;"
570-
"function base_func($command, $args, $expects) {return;}"
571-
"function __construct(?string $region = null, ?int $port = null, ?string "
572-
"$host = null) {"
573-
"$this->region = $region;"
574-
"$this->endpoint = new endpoint_class($port, $host);"
575-
"}"
569+
"private ?string $region;"
570+
"private ?endpoint_class $endpoint;"
571+
"function base_func($command, $args, $expects) {return;}"
572+
"function __construct(?string $region = null, ?int $port = null, ?string $host = null) {"
573+
"$this->region = $region;"
574+
"$this->endpoint = new endpoint_class($port, $host);"
575+
"}"
576576
"}"
577-
"class top_class extends base_class {"
578-
"}");
577+
"class top_class extends base_class {}";
578+
// clang-format on
579+
tlib_php_request_eval(classes);
579580
}
580581
static void test_nr_lib_aws_sdk_php_dynamodb_set_params() {
581582
zval* obj = NULL;

0 commit comments

Comments
 (0)