public function testVariablesWithInvalidDefaultValues()
{
$this->expectFailsRule(new DefaultValuesOfCorrectType(), '
query InvalidDefaultValues(
$a: Int = "one",
$b: String = 4,
$c: ComplexInput = "notverycomplex"
) {
dog { name }
}
', [$this->badValue('a', 'Int', '"one"', 3, 19, ['Expected type "Int", found "one".']), $this->badValue('b', 'String', '4', 4, 22, ['Expected type "String", found 4.']), $this->badValue('c', 'ComplexInput', '"notverycomplex"', 5, 28, ['Expected "ComplexInput", found not an object.'])]);
}