public function testVariableInFragmentNotDefinedByUnNamedQuery() { $this->expectFailsRule(new NoUndefinedVariables(), ' { ...FragA } fragment FragA on Type { field(a: $a) } ', [$this->undefVar('a', 6, 18, '', 2, 7)]); }