graphql-php/tests/Server
Daniel Tschinder 15374a31dd New: printError()
Lifted from / inspired by a similar change in graphql/graphql-js#722, this creates a new function `printError()` (and uses it as the implementation for `GraphQLError#toString()`) which prints location information in the context of an error.

This is moved from the syntax error where it used to be hard-coded, so it may now be used to format validation errors, value coercion errors, or any other error which may be associated with a location.

ref: graphql/graphql-js

BREAKING CHANGE: The SyntaxError message does not contain the codeframe anymore and only the message, (string) $error will print the codeframe.
2018-02-12 12:23:39 +01: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 New: printError() 2018-02-12 12:23:39 +01:00
RequestParsingTest.php Fixed PSR request parsing, broken after recent changes 2018-01-13 18:08:07 +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 Drop support non pre-parsed PSR-7 request body 2017-12-21 15:01:57 +09:00
TestCase.php Server: fixed constructor screwed during rebasing + restored tests for the server 2017-08-21 01:18:23 +07:00