graphql-php/tests/Language
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
..
kitchen-sink-noloc.ast RFC: Block String 2018-02-10 18:43:26 +01:00
kitchen-sink.ast RFC: Block String 2018-02-10 18:43:26 +01:00
kitchen-sink.graphql RFC: Block String 2018-02-10 18:43:26 +01:00
LexerTest.php New: printError() 2018-02-12 12:23:39 +01:00
ParserTest.php New: printError() 2018-02-12 12:23:39 +01:00
PrinterTest.php Fix print of block string with leading space and quotation 2018-02-10 18:44:56 +01:00
schema-kitchen-sink.graphql SDL Spec changes 2018-02-11 21:08:53 +01:00
SchemaParserTest.php New: printError() 2018-02-12 12:23:39 +01:00
SchemaPrinterTest.php SDL Spec changes 2018-02-11 21:08:53 +01:00
SerializationTest.php Fixed bug preventing use of parser noLocation option for serialization / deserialization 2018-01-13 15:45:09 +07:00
TestUtils.php AST: new NodeList class for collections of nodes (vs array) to enable effective conversion of libgraphqlparser output to our AST tree 2017-07-21 22:29:59 +07:00
TokenTest.php Creating test to Language\Token 2017-10-04 12:06:25 -03:00
VisitorTest.php Fix KnownDirectives validator to support all directives 2018-02-11 13:15:51 +01:00