graphql-php/tests
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
..
Executor Additional tests for variable coercion + use printSafeJson vs printSafe for input variables 2017-09-20 18:40:45 +07:00
Language Creating test to Language\Token 2017-10-04 12:06:25 -03:00
Server Support non pre-parsed PSR-7 request body 2017-11-26 19:57:32 +09:00
Type Ability to override internal types (using types option of Schema class) #174 2017-09-22 23:08:51 +07:00
Utils Preserve description for custom scalars (#181) 2017-10-14 00:45:23 +07:00
Validator Abstract base class for validation rules 2017-08-18 20:56:04 +07:00
ErrorTest.php Replaced "AST" with "Node" in variable names for better readability 2016-11-19 06:47:55 +07:00
ServerTest.php Refactored error formatting (debugging part) 2017-08-17 18:49:17 +07:00
StarWarsData.php Updated StarWars tests 2016-10-23 00:46:15 +07:00
StarWarsIntrospectionTest.php Ability to override internal types (using types option of Schema class) #174 2017-09-22 23:08:51 +07:00
StarWarsQueryTest.php Updated executor and it's tests for april2016 specs 2016-09-14 18:47:34 +07:00
StarWarsSchema.php Minor fix to StarWarsSchema type language in comments 2016-11-18 20:32:09 +07:00
StarWarsValidationTest.php Updated executor and it's tests for april2016 specs 2016-09-14 18:47:34 +07:00
UtilsTest.php Moved GraphQL\Utils to GraphQL\Utils\Utils 2017-07-10 19:53:46 +07:00