Skip to content

Commit 4261e13

Browse files
committed
Fix tests under --prefer-lowest, again
1 parent dd170e4 commit 4261e13

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

test/DependencyInjection/ConfigurationTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ public function invalidValuesProvider(): array
181181
['integrations', [1]],
182182
['integrations', 'a string'],
183183
['logger', []],
184-
['max_request_body_size', null],
185-
['max_request_body_size', 'invalid'],
186184
['max_breadcrumbs', -1],
187185
['max_breadcrumbs', 'string'],
188186
['max_value_length', -1],
@@ -207,6 +205,11 @@ public function invalidValuesProvider(): array
207205
$values[] = ['class_serializers', -1];
208206
}
209207

208+
if ($this->maxRequestBodySizeIsSupported()) {
209+
$values[] = ['max_request_body_size', null];
210+
$values[] = ['max_request_body_size', 'invalid'];
211+
}
212+
210213
return $values;
211214
}
212215

test/DependencyInjection/SentryExtensionTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ public function optionsValueProvider(): array
122122
['excluded_exceptions', [\Throwable::class]],
123123
['http_proxy', '1.2.3.4'],
124124
['logger', 'sentry-logger'],
125-
['max_request_body_size', 'always'],
126125
['max_breadcrumbs', 15],
127126
['max_value_length', 1000],
128127
['prefixes', ['/some/path/prefix/']],
@@ -149,6 +148,10 @@ public function optionsValueProvider(): array
149148
];
150149
}
151150

151+
if ($this->maxRequestBodySizeIsSupported()) {
152+
$options[] = ['max_request_body_size', 'always'];
153+
}
154+
152155
return $options;
153156
}
154157

0 commit comments

Comments
 (0)