graphql-php/tests
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
..
Executor Update to match SDL changes 2018-02-11 13:27:26 +01:00
Language New: printError() 2018-02-12 12:23:39 +01:00
Server New: printError() 2018-02-12 12:23:39 +01:00
Type Improve introspection types + new getIntrospectionQuery() 2018-02-11 18:19:52 +01:00
Utils Include test that printSchema includes non-spec directives. 2018-02-11 21:32:40 +01:00
Validator Fix unhandled error when parsing custom scalar literals. 2018-02-11 22:31:04 +01:00
ErrorTest.php Allow constructing GraphQLError with single node. 2018-02-11 21:18:54 +01:00
ServerTest.php New: printError() 2018-02-12 12:23:39 +01: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 Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09:00