graphql-php/tests
Daniel Tschinder 6e358eb26c Fix infinite loop on invalid queries in OverlappingFields
`OverlappingFieldsCanBeMerged` would infinite loop when passed something like

```graphql
fragment A on User {
  name
  ...A
}
```

It's not `OverlappingFieldsCanBeMerged`'s responsibility to detect that validation error, but we still would ideally avoid infinite looping.

This detects that case, and pretends that the infinite spread wasn't there for the purposes of this validation step.

Also, by memoizing and checking for self-references this removes duplicate reports.

ref: graphql/graphql-js#1111
2018-02-11 17:58:48 +01:00
..
Executor Update to match SDL changes 2018-02-11 13:27:26 +01:00
Language Update to match SDL changes 2018-02-11 13:27:26 +01:00
Server Fixed PSR request parsing, broken after recent changes 2018-01-13 18:08:07 +07:00
Type Support for union types when using buildSchema 2018-02-10 18:45:01 +01:00
Utils Update to match SDL changes 2018-02-11 13:27:26 +01:00
Validator Fix infinite loop on invalid queries in OverlappingFields 2018-02-11 17:58:48 +01:00
ErrorTest.php Allow to extend GraphQL errors with additional properties 2018-02-10 18:45:38 +01:00
ServerTest.php Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09: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