File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,16 +128,16 @@ public function testHttpClientSpanIsNotRecordedWhenDisabled(): void
128
128
129
129
public function testHttpClientRequestTracingHeadersAreAttached (): void
130
130
{
131
- if (!method_exists (Http::class, 'globalRequestMiddleware ' )) {
132
- $ this ->markTestSkipped ('The `globalRequestMiddleware` functionality we rely on was introduced in Laravel 10.14 ' );
133
- }
134
-
135
131
$ this ->resetApplicationWithConfig ([
136
132
'sentry.trace_propagation_targets ' => ['example.com ' ],
137
133
]);
138
134
139
135
$ client = Http::fake ();
140
136
137
+ if (!method_exists ($ client , 'globalRequestMiddleware ' )) {
138
+ $ this ->markTestSkipped ('The `globalRequestMiddleware` functionality we rely on was introduced in Laravel 10.14 ' );
139
+ }
140
+
141
141
$ client ->get ('https://example.com ' );
142
142
143
143
Http::assertSent (function (Request $ request ) {
You can’t perform that action at this time.
0 commit comments