Skip to content

Commit f2d99e7

Browse files
author
Karsten Lehmann
committed
Added non-regression test for Behatch#236
As suggested in Behatch#237 a new test for headers with numeric values larger than PHP_INT_MAX has been added.
1 parent 5670998 commit f2d99e7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/features/rest.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ Feature: Testing RESTContext
5656
When I send a GET request to "/rest/index.php"
5757
Then I should see "HTTP_XXX : yyy"
5858

59+
Scenario: Add header with large numeric value
60+
Given I add "xxx-large-numeric" header equal to "92233720368547758070"
61+
When I send a GET request to "/rest/index.php"
62+
Then I should see "HTTP_XXX_LARGE_NUMERIC : 92233720368547758070"
63+
5964
Scenario: Header should not be cross-scenarios persistent
6065
When I send a GET request to "/rest/index.php"
6166
Then I should not see "HTTP_XXX : yyy"
67+
Then I should not see "HTTP_XXX_LARGE_NUMERIC"
6268

6369
Scenario: Case-insensitive header name
6470
Like describe in the rfc2614 §4.2

0 commit comments

Comments
 (0)