diff --git a/.docker/config/php/xdebug.ini b/.docker/config/php/xdebug.ini index 5e31f73e..69926bb9 100644 --- a/.docker/config/php/xdebug.ini +++ b/.docker/config/php/xdebug.ini @@ -1,4 +1,3 @@ xdebug.client_host=host.docker.internal -xdebug.discover_client_host=true xdebug.log_level=0 xdebug.start_with_request=yes diff --git a/tests/proxy/compose-policy.bats b/tests/proxy/compose-policy.bats index a5d151aa..2a89431d 100644 --- a/tests/proxy/compose-policy.bats +++ b/tests/proxy/compose-policy.bats @@ -81,3 +81,8 @@ setup() { done < <(grep -E '^[[:space:]]*-?[[:space:]]*uses:[[:space:]]+[^./][^[:space:]]+@' "$workflow" || true) done < <(find "$REPO_ROOT/.github/workflows" -type f \( -name '*.yml' -o -name '*.yaml' \)) } + +@test "Xdebug connects only to the configured client host" { + grep -Fxq 'xdebug.client_host=host.docker.internal' "$REPO_ROOT/.docker/config/php/xdebug.ini" + ! grep -q 'discover_client_host' "$REPO_ROOT/.docker/config/php/xdebug.ini" +}