graphql-php/tests/Server
Adrien Crivelli 11c9429fab
Support non pre-parsed PSR-7 request body
Because PSR-7 specification only specify that `getParsedBody()` **may**
return the parsed body for `application/json`, we cannot assume that it
is always the case. So if the value returned parsed body is an empty array,
it means we should try to parse it ourselves (`null` would mean no body at
all according to spec).

With this modification we try to used given parsed body, but fallback on
trying to parse the body if necessary. This leave the door open to custom
implementation of parsing if needed, while making it easier to use out of
the box.
2017-11-26 19:57:32 +09:00
..
Psr7 Server: additional tests + related fixes 2017-08-15 20:59:48 +07:00
PsrResponseTest.php Server: additional tests + related fixes 2017-08-15 20:59:48 +07:00
QueryExecutionTest.php Server: fixed constructor screwed during rebasing + restored tests for the server 2017-08-21 01:18:23 +07:00
RequestParsingTest.php Improved docblock comments (suitable for reference docs generation) 2017-08-19 23:01:46 +07:00
RequestValidationTest.php Server: do not raise an error when variables are passed as empty string (#156) 2017-08-30 23:26:45 +07:00
ServerConfigTest.php Server: minor improvements 2017-08-18 02:54:35 +07:00
StandardServerTest.php Support non pre-parsed PSR-7 request body 2017-11-26 19:57:32 +09:00
TestCase.php Server: fixed constructor screwed during rebasing + restored tests for the server 2017-08-21 01:18:23 +07:00