Skip to content

Commit

Permalink
Update push_address to push_addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
estringana committed Jan 23, 2025
1 parent c95b186 commit 09fedb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions appsec/tests/extension/push_params_block_02.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ datadog.appsec.enabled=1
--FILE--
<?php
use function datadog\appsec\testing\{rinit,rshutdown};
use function datadog\appsec\push_address;
use function datadog\appsec\push_addresses;

include __DIR__ . '/inc/mock_helper.php';

Expand All @@ -25,7 +25,7 @@ class SomeIntegration {
private static function hooked_function()
{
return static function (DDTrace\HookData $hook) {
push_address("server.request.path_params", ["some" => "params", "more" => "parameters"]);
push_addresses(["server.request.path_params", ["some" => "params", "more" => "parameters"]]);
var_dump("This should be executed");
};
}
Expand Down
4 changes: 2 additions & 2 deletions appsec/tests/extension/push_params_block_03.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ datadog.appsec.enabled=1
--FILE--
<?php
use function datadog\appsec\testing\{rinit,rshutdown};
use function datadog\appsec\push_address;
use function datadog\appsec\push_addresses;

include __DIR__ . '/inc/mock_helper.php';

Expand All @@ -25,7 +25,7 @@ class SomeIntegration {
private static function hooked_function()
{
return static function (DDTrace\HookData $hook) {
push_address("server.request.path_params", ["some" => "params", "more" => "parameters"]);
push_addresses(["server.request.path_params", ["some" => "params", "more" => "parameters"]]);
var_dump("This should be executed");
};
}
Expand Down
4 changes: 2 additions & 2 deletions appsec/tests/extension/push_params_redirect_02.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ datadog.appsec.enabled=1
--FILE--
<?php
use function datadog\appsec\testing\{rinit,rshutdown};
use function datadog\appsec\push_address;
use function datadog\appsec\push_addresses;

include __DIR__ . '/inc/mock_helper.php';

Expand All @@ -25,7 +25,7 @@ class SomeIntegration {
private static function hooked_function()
{
return static function (DDTrace\HookData $hook) {
push_address("server.request.path_params", ["some" => "params", "more" => "parameters"]);
push_addresses(["server.request.path_params", ["some" => "params", "more" => "parameters"]]);
var_dump("This should be executed");
};
}
Expand Down

0 comments on commit 09fedb4

Please sign in to comment.