public function testOutputTypesAreInvalid()
{
$this->expectFailsRule(new VariablesAreInputTypes(), '
query Foo($a: Dog, $b: [[DogOrCat!]]!, $c: Pet) {
field(a: $a, b: $b, c: $c)
}
', [new FormattedError(Messages::nonInputTypeOnVarMessage('a', 'Dog'), [new SourceLocation(2, 21)]), new FormattedError(Messages::nonInputTypeOnVarMessage('b', '[[DogOrCat!]]!'), [new SourceLocation(2, 30)]), new FormattedError(Messages::nonInputTypeOnVarMessage('c', 'Pet'), [new SourceLocation(2, 50)])]);
}