public function testFragmentsNamedTheSameWithoutBeingReferenced() { $this->expectFailsRule(new UniqueFragmentNames(), ' fragment fragA on Type { fieldA } fragment fragA on Type { fieldB } ', [$this->duplicateFrag('fragA', 2, 16, 5, 16)]); }