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