Skip to content

Commit

Permalink
Fix tests under --prefer-lowest, again
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Sep 27, 2019
1 parent dd170e4 commit 4261e13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions test/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ public function invalidValuesProvider(): array
['integrations', [1]],
['integrations', 'a string'],
['logger', []],
['max_request_body_size', null],
['max_request_body_size', 'invalid'],
['max_breadcrumbs', -1],
['max_breadcrumbs', 'string'],
['max_value_length', -1],
Expand All @@ -207,6 +205,11 @@ public function invalidValuesProvider(): array
$values[] = ['class_serializers', -1];
}

if ($this->maxRequestBodySizeIsSupported()) {
$values[] = ['max_request_body_size', null];
$values[] = ['max_request_body_size', 'invalid'];
}

return $values;
}

Expand Down
5 changes: 4 additions & 1 deletion test/DependencyInjection/SentryExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public function optionsValueProvider(): array
['excluded_exceptions', [\Throwable::class]],
['http_proxy', '1.2.3.4'],
['logger', 'sentry-logger'],
['max_request_body_size', 'always'],
['max_breadcrumbs', 15],
['max_value_length', 1000],
['prefixes', ['/some/path/prefix/']],
Expand All @@ -149,6 +148,10 @@ public function optionsValueProvider(): array
];
}

if ($this->maxRequestBodySizeIsSupported()) {
$options[] = ['max_request_body_size', 'always'];
}

return $options;
}

Expand Down

0 comments on commit 4261e13

Please sign in to comment.