Skip to content

Commit

Permalink
Merge branch '4.4' into 5.2
Browse files Browse the repository at this point in the history
* 4.4:
  [Form] Ignoring invalid forms from delete_empty behavior in CollectionType
  Add Symfony Armenian Translations
  cs fix
  Add different header notations to tests
  • Loading branch information
derrabus committed Feb 22, 2021
2 parents 9d98e50 + cfa8d92 commit 3ca3a57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/HttpBrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ public function validContentTypes()
['POST', 'http://example.com/', [], [], ['CONTENT_TYPE' => 'application/json'], '["content"]'],
['POST', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
];
yield 'custom header with HTTP_ prefix' => [
['PUT', 'http://example.com/', [], [], ['HTTP_CONTENT_TYPE' => 'application/json'], '["content"]'],
['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
];
yield 'modify notation of custom header with HTTP_ prefix' => [
['PUT', 'http://example.com/', [], [], ['HTTP_Content-Type' => 'application/json'], '["content"]'],
['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
];
yield 'modify notation of custom header' => [
['PUT', 'http://example.com/', [], [], ['Content-Type' => 'application/json'], '["content"]'],
['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
];
}

public function testMultiPartRequestWithSingleFile()
Expand Down

0 comments on commit 3ca3a57

Please sign in to comment.